MCPcopy
hub / github.com/kopia/kopia / FromSlice

Function FromSlice

internal/gather/gather_bytes.go:293–300  ·  view source on GitHub ↗

FromSlice creates Bytes from the specified slice.

(b []byte)

Source from the content-addressed store, hash-verified

291
292// FromSlice creates Bytes from the specified slice.
293func FromSlice(b []byte) Bytes {
294 var r Bytes
295
296 r.sliceBuf[0] = b
297 r.Slices = r.sliceBuf[:]
298
299 return r
300}

Calls

no outgoing calls