MCPcopy
hub / github.com/uber/aresdb / AppendInt64

Method AppendInt64

utils/serialization.go:229–236  ·  view source on GitHub ↗

AppendInt64 writes a int64 value to buffer and advances offset.

(value int64)

Source from the content-addressed store, hash-verified

227
228// AppendInt64 writes a int64 value to buffer and advances offset.
229func (b *BufferWriter) AppendInt64(value int64) error {
230 b.AlignBytes(1)
231 if err := b.WriteInt64(value, b.offset); err != nil {
232 return err
233 }
234 b.offset += 8
235 return nil
236}
237
238// AppendUint32 writes a uint32 value to buffer and advances offset.
239func (b *BufferWriter) AppendUint32(value uint32) error {

Callers 3

AppendToBufferMethod · 0.95
WriteMethod · 0.80

Calls 2

AlignBytesMethod · 0.95
WriteInt64Method · 0.95

Tested by

no test coverage detected