WriteInt16Slice writes []int16 with ref/type info
(value []int16, refMode RefMode, writeTypeInfo bool)
| 263 | |
| 264 | // WriteInt16Slice writes []int16 with ref/type info |
| 265 | func (c *WriteContext) WriteInt16Slice(value []int16, refMode RefMode, writeTypeInfo bool) { |
| 266 | if refMode != RefModeNone { |
| 267 | if value == nil { |
| 268 | c.buffer.WriteInt8(NullFlag) |
| 269 | return |
| 270 | } |
| 271 | c.buffer.WriteInt8(NotNullValueFlag) |
| 272 | } |
| 273 | if writeTypeInfo { |
| 274 | c.WriteTypeId(INT16_ARRAY) |
| 275 | } |
| 276 | WriteInt16Slice(c.buffer, value) |
| 277 | } |
| 278 | |
| 279 | // WriteInt32Slice writes []int32 with ref/type info |
| 280 | func (c *WriteContext) WriteInt32Slice(value []int32, refMode RefMode, writeTypeInfo bool) { |
no test coverage detected