Pointer returns a pointer to the first uint16 in the buffer. If the [WString.Free] has already been called, the pointer will be nil.
()
| 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. |
| 97 | func (b *WString) Pointer() *uint16 { |
| 98 | if b.empty() { |
| 99 | return nil |
| 100 | } |
| 101 | return &b.b[0] |
| 102 | } |
| 103 | |
| 104 | // String returns the returns the UTF-8 encoding of the UTF-16 string in the buffer. |
| 105 | // |