NewBuffer allocates a new Buffer initialized with buf, where the contents of buf are considered the unread portion of the buffer.
(buf []byte)
| 55 | // NewBuffer allocates a new Buffer initialized with buf, |
| 56 | // where the contents of buf are considered the unread portion of the buffer. |
| 57 | func NewBuffer(buf []byte) *Buffer { |
| 58 | return &Buffer{buf: buf} |
| 59 | } |
| 60 | |
| 61 | // SetDeterministic specifies whether to use deterministic serialization. |
| 62 | // |
no outgoing calls