WriteInt64 writes a int64 value to buffer and advances offset.
(value int64, offset int)
| 322 | |
| 323 | // WriteInt64 writes a int64 value to buffer and advances offset. |
| 324 | func (b *BufferWriter) WriteInt64(value int64, offset int) error { |
| 325 | if offset+8 > len(b.buffer) { |
| 326 | return StackError(nil, "Failed to write int64 to buffer at offset %d", offset) |
| 327 | } |
| 328 | *(*int64)(unsafe.Pointer(&b.buffer[offset])) = value |
| 329 | return nil |
| 330 | } |
| 331 | |
| 332 | // WriteUint32 writes a uint32 value to buffer and advances offset. |
| 333 | func (b *BufferWriter) WriteUint32(value uint32, offset int) error { |
no test coverage detected