WriteInt64Slice writes []int64 to buffer using ARRAY protocol
(buf *ByteBuffer, value []int64)
| 865 | |
| 866 | // WriteInt64Slice writes []int64 to buffer using ARRAY protocol |
| 867 | func WriteInt64Slice(buf *ByteBuffer, value []int64) { |
| 868 | size := len(value) * 8 |
| 869 | buf.WriteLength(size) |
| 870 | if len(value) > 0 { |
| 871 | if isLittleEndian { |
| 872 | buf.WriteBinary(unsafe.Slice((*byte)(unsafe.Pointer(&value[0])), size)) |
| 873 | } else { |
| 874 | for i := 0; i < len(value); i++ { |
| 875 | buf.WriteInt64(value[i]) |
| 876 | } |
| 877 | } |
| 878 | } |
| 879 | } |
| 880 | |
| 881 | // ReadInt64Slice reads []int64 from buffer using ARRAY protocol |
| 882 | func ReadInt64Slice(buf *ByteBuffer, err *Error) []int64 { |
no test coverage detected