MCPcopy Index your code
hub / github.com/uber/aresdb / WriteInt64

Method WriteInt64

utils/serialization.go:324–330  ·  view source on GitHub ↗

WriteInt64 writes a int64 value to buffer and advances offset.

(value int64, offset int)

Source from the content-addressed store, hash-verified

322
323// WriteInt64 writes a int64 value to buffer and advances offset.
324func (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.
333func (b *BufferWriter) WriteUint32(value uint32, offset int) error {

Callers 2

AppendInt64Method · 0.95

Calls 1

StackErrorFunction · 0.85

Tested by

no test coverage detected