(buf *ByteBuffer, value []int16)
| 523 | } |
| 524 | |
| 525 | func writeInt16ListValues(buf *ByteBuffer, value []int16) { |
| 526 | size := len(value) * 2 |
| 527 | if len(value) > 0 { |
| 528 | if isLittleEndian { |
| 529 | buf.WriteBinary(unsafe.Slice((*byte)(unsafe.Pointer(&value[0])), size)) |
| 530 | } else { |
| 531 | for _, v := range value { |
| 532 | buf.WriteInt16(v) |
| 533 | } |
| 534 | } |
| 535 | } |
| 536 | } |
| 537 | |
| 538 | func readInt16ListValues(buf *ByteBuffer, err *Error, length int, hasNull bool) []int16 { |
| 539 | result := make([]int16, length) |
no test coverage detected