(buf *ByteBuffer, value []uint, typeID TypeId)
| 838 | } |
| 839 | |
| 840 | func writeUintListValues(buf *ByteBuffer, value []uint, typeID TypeId) { |
| 841 | if reflect.TypeOf(uint(0)).Size() == 8 { |
| 842 | asUint64 := unsafe.Slice((*uint64)(unsafe.Pointer(&value[0])), len(value)) |
| 843 | writeUint64ListValues(buf, asUint64, typeID) |
| 844 | return |
| 845 | } |
| 846 | for _, v := range value { |
| 847 | if typeID == UINT32 { |
| 848 | buf.WriteInt32(int32(v)) |
| 849 | } else { |
| 850 | buf.WriteVarUint32(uint32(v)) |
| 851 | } |
| 852 | } |
| 853 | } |
| 854 | |
| 855 | func readUintListValues(buf *ByteBuffer, err *Error, length int, hasNull bool, typeID TypeId) []uint { |
| 856 | result := make([]uint, length) |
no test coverage detected