Create an empty buffer
()
| 21 | |
| 22 | // Create an empty buffer |
| 23 | func NewEmptyBuffer() *Buffer { |
| 24 | return &Buffer{data: make([]byte, 0)} |
| 25 | } |
| 26 | |
| 27 | // Create an empty buffer with the given capacity |
| 28 | func NewCapacityBuffer(capacity int) *Buffer { |
no outgoing calls
no test coverage detected