(buf *ByteBuffer, value []uint16)
| 557 | } |
| 558 | |
| 559 | func writeUint16ListValues(buf *ByteBuffer, value []uint16) { |
| 560 | size := len(value) * 2 |
| 561 | if len(value) > 0 { |
| 562 | if isLittleEndian { |
| 563 | buf.WriteBinary(unsafe.Slice((*byte)(unsafe.Pointer(&value[0])), size)) |
| 564 | } else { |
| 565 | for _, v := range value { |
| 566 | buf.WriteInt16(int16(v)) |
| 567 | } |
| 568 | } |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | func readUint16ListValues(buf *ByteBuffer, err *Error, length int, hasNull bool) []uint16 { |
| 573 | result := make([]uint16, length) |
no test coverage detected