MCPcopy
hub / github.com/perkeep/perkeep / ByteParts

Method ByteParts

pkg/schema/blob.go:104–112  ·  view source on GitHub ↗

ByteParts returns the "parts" field. The caller owns the returned slice.

()

Source from the content-addressed store, hash-verified

102// ByteParts returns the "parts" field. The caller owns the returned
103// slice.
104func (b *Blob) ByteParts() []BytesPart {
105 // TODO: move this method off Blob, and make the caller go
106 // through a (*Blob).ByteBackedBlob() comma-ok accessor first.
107 s := make([]BytesPart, len(b.ss.Parts))
108 for i, part := range b.ss.Parts {
109 s[i] = *part
110 }
111 return s
112}
113
114func (b *Blob) Builder() *Builder {
115 var m map[string]interface{}

Callers 4

fileMapFromDuplicateMethod · 0.80
bytesHaveSchemaLinkFunction · 0.80
fileMapFromDuplicateMethod · 0.80
loadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected