(buf *ByteBuffer, err *Error, length int, hasNull bool)
| 489 | } |
| 490 | |
| 491 | func readInt8ListValues(buf *ByteBuffer, err *Error, length int, hasNull bool) []int8 { |
| 492 | result := make([]int8, length) |
| 493 | if !hasNull { |
| 494 | buf.Read(unsafe.Slice((*byte)(unsafe.Pointer(&result[0])), length)) |
| 495 | return result |
| 496 | } |
| 497 | for i := 0; i < length; i++ { |
| 498 | if buf.ReadInt8(err) != NullFlag { |
| 499 | result[i] = buf.ReadInt8(err) |
| 500 | } |
| 501 | } |
| 502 | return result |
| 503 | } |
| 504 | |
| 505 | func writeUint8ListValues(buf *ByteBuffer, value []byte) { |
| 506 | if len(value) > 0 { |
no test coverage detected