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

Method AppendInt32

utils/serialization.go:219–226  ·  view source on GitHub ↗

AppendInt32 writes a int32 value to buffer and advances offset.

(value int32)

Source from the content-addressed store, hash-verified

217
218// AppendInt32 writes a int32 value to buffer and advances offset.
219func (b *BufferWriter) AppendInt32(value int32) error {
220 b.AlignBytes(1)
221 if err := b.WriteInt32(value, b.offset); err != nil {
222 return err
223 }
224 b.offset += 4
225 return nil
226}
227
228// AppendInt64 writes a int64 value to buffer and advances offset.
229func (b *BufferWriter) AppendInt64(value int64) error {

Callers 4

AppendToBufferMethod · 0.95
ToByteArrayMethod · 0.95
WriteMethod · 0.80

Calls 2

AlignBytesMethod · 0.95
WriteInt32Method · 0.95

Tested by

no test coverage detected