(buf *ByteBuffer, err *Error, length int, hasNull bool)
| 469 | } |
| 470 | |
| 471 | func readBoolListValues(buf *ByteBuffer, err *Error, length int, hasNull bool) []bool { |
| 472 | result := make([]bool, length) |
| 473 | if !hasNull { |
| 474 | buf.Read(unsafe.Slice((*byte)(unsafe.Pointer(&result[0])), length)) |
| 475 | return result |
| 476 | } |
| 477 | for i := 0; i < length; i++ { |
| 478 | if buf.ReadInt8(err) != NullFlag { |
| 479 | result[i] = buf.ReadBool(err) |
| 480 | } |
| 481 | } |
| 482 | return result |
| 483 | } |
| 484 | |
| 485 | func writeInt8ListValues(buf *ByteBuffer, value []int8) { |
| 486 | if len(value) > 0 { |
no test coverage detected