MCPcopy Create free account
hub / github.com/apache/fory / WriteFloat64Slice

Method WriteFloat64Slice

go/fory/writer.go:408–420  ·  view source on GitHub ↗

WriteFloat64Slice writes []float64 with ref/type info

(value []float64, refMode RefMode, writeTypeInfo bool)

Source from the content-addressed store, hash-verified

406
407// WriteFloat64Slice writes []float64 with ref/type info
408func (c *WriteContext) WriteFloat64Slice(value []float64, refMode RefMode, writeTypeInfo bool) {
409 if refMode != RefModeNone {
410 if value == nil {
411 c.buffer.WriteInt8(NullFlag)
412 return
413 }
414 c.buffer.WriteInt8(NotNullValueFlag)
415 }
416 if writeTypeInfo {
417 c.WriteTypeId(FLOAT64_ARRAY)
418 }
419 WriteFloat64Slice(c.buffer, value)
420}
421
422// WriteByteSlice writes []byte with ref/type info
423func (c *WriteContext) WriteByteSlice(value []byte, refMode RefMode, writeTypeInfo bool) {

Callers 1

writeRemainingFieldMethod · 0.80

Calls 3

WriteTypeIdMethod · 0.95
WriteFloat64SliceFunction · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected