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

Method Buffer

internal/stringbuffer/wstring.go:88–93  ·  view source on GitHub ↗

Buffer returns the underlying []uint16 buffer.

()

Source from the content-addressed store, hash-verified

86
87// Buffer returns the underlying []uint16 buffer.
88func (b *WString) Buffer() []uint16 {
89 if b.empty() {
90 return nil
91 }
92 return b.b
93}
94
95// Pointer returns a pointer to the first uint16 in the buffer.
96// If the [WString.Free] has already been called, the pointer will be nil.

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.95

Tested by

no test coverage detected