MCPcopy Create free account
hub / github.com/microsoft/go-winio / Cap

Method Cap

internal/stringbuffer/wstring.go:124–129  ·  view source on GitHub ↗

Cap returns the underlying buffer capacity.

()

Source from the content-addressed store, hash-verified

122
123// Cap returns the underlying buffer capacity.
124func (b *WString) Cap() uint32 {
125 if b.empty() {
126 return 0
127 }
128 return b.cap()
129}
130
131func (b *WString) cap() uint32 { return uint32(cap(b.b)) }
132func (b *WString) empty() bool { return b == nil || b.cap() == 0 }

Callers 5

GetFileSystemTypeFunction · 0.95
GetFinalPathNameByHandleFunction · 0.95
ResizeToMethod · 0.95
Test_BufferCapacityFunction · 0.95
Test_BufferFreeFunction · 0.95

Calls 2

emptyMethod · 0.95
capMethod · 0.95

Tested by 2

Test_BufferCapacityFunction · 0.76
Test_BufferFreeFunction · 0.76