Create a buffer with attached bytes memory buffer
(buffer []byte)
| 31 | |
| 32 | // Create a buffer with attached bytes memory buffer |
| 33 | func NewAttached(buffer []byte) *Buffer { |
| 34 | result := NewEmptyBuffer() |
| 35 | result.Attach(buffer) |
| 36 | return result |
| 37 | } |
| 38 | |
| 39 | // Create a buffer with attached bytes memory buffer with offset and size |
| 40 | func NewAttachedBytes(buffer []byte, offset int, size int) *Buffer { |
nothing calls this directly
no test coverage detected