WriteIntSlice writes []int with ref/type info
(value []int, refMode RefMode, writeTypeInfo bool)
| 353 | |
| 354 | // WriteIntSlice writes []int with ref/type info |
| 355 | func (c *WriteContext) WriteIntSlice(value []int, refMode RefMode, writeTypeInfo bool) { |
| 356 | if refMode != RefModeNone { |
| 357 | if value == nil { |
| 358 | c.buffer.WriteInt8(NullFlag) |
| 359 | return |
| 360 | } |
| 361 | c.buffer.WriteInt8(NotNullValueFlag) |
| 362 | } |
| 363 | if writeTypeInfo { |
| 364 | if strconv.IntSize == 64 { |
| 365 | c.WriteTypeId(INT64_ARRAY) |
| 366 | } else { |
| 367 | c.WriteTypeId(INT32_ARRAY) |
| 368 | } |
| 369 | } |
| 370 | WriteIntSlice(c.buffer, value) |
| 371 | } |
| 372 | |
| 373 | // WriteUintSlice writes []uint with ref/type info |
| 374 | func (c *WriteContext) WriteUintSlice(value []uint, refMode RefMode, writeTypeInfo bool) { |
no test coverage detected