(buf *ByteBuffer, value []int, typeID TypeId)
| 803 | } |
| 804 | |
| 805 | func writeIntListValues(buf *ByteBuffer, value []int, typeID TypeId) { |
| 806 | if reflect.TypeOf(int(0)).Size() == 8 { |
| 807 | asInt64 := unsafe.Slice((*int64)(unsafe.Pointer(&value[0])), len(value)) |
| 808 | writeInt64ListValues(buf, asInt64, typeID) |
| 809 | return |
| 810 | } |
| 811 | for _, v := range value { |
| 812 | if typeID == INT32 { |
| 813 | buf.WriteInt32(int32(v)) |
| 814 | } else { |
| 815 | buf.WriteVarint32(int32(v)) |
| 816 | } |
| 817 | } |
| 818 | } |
| 819 | |
| 820 | func readIntListValues(buf *ByteBuffer, err *Error, length int, hasNull bool, typeID TypeId) []int { |
| 821 | result := make([]int, length) |
no test coverage detected