MCPcopy
hub / github.com/kopia/kopia / Length

Method Length

internal/gather/gather_write_buffer.go:98–103  ·  view source on GitHub ↗

Length returns the combined length of all slices.

()

Source from the content-addressed store, hash-verified

96
97// Length returns the combined length of all slices.
98func (b *WriteBuffer) Length() int {
99 b.mu.Lock()
100 defer b.mu.Unlock()
101
102 return b.inner.Length()
103}
104
105// ToByteSlice appends all bytes to the provided slice and returns it.
106func (b *WriteBuffer) ToByteSlice() []byte {

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
LengthMethod · 0.65