WriteInt8Slice writes []int8 to buffer using ARRAY protocol
(buf *ByteBuffer, value []int8)
| 752 | |
| 753 | // WriteInt8Slice writes []int8 to buffer using ARRAY protocol |
| 754 | func WriteInt8Slice(buf *ByteBuffer, value []int8) { |
| 755 | size := len(value) |
| 756 | buf.WriteLength(size) |
| 757 | if size > 0 { |
| 758 | buf.WriteBinary(unsafe.Slice((*byte)(unsafe.Pointer(&value[0])), size)) |
| 759 | } |
| 760 | } |
| 761 | |
| 762 | // ReadInt8Slice reads []int8 from buffer using ARRAY protocol |
| 763 | func ReadInt8Slice(buf *ByteBuffer, err *Error) []int8 { |
no test coverage detected