NewWString returns a [WString] allocated from a shared pool with an initial capacity of at least [MinWStringCap]. Since the buffer may have been previously used, its contents are not guaranteed to be empty. The buffer should be freed via [WString.Free]
()
| 46 | // |
| 47 | // The buffer should be freed via [WString.Free] |
| 48 | func NewWString() *WString { |
| 49 | return &WString{ |
| 50 | b: newBuffer(), |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func (b *WString) Free() { |
| 55 | if b.empty() { |
searching dependent graphs…