Get returns the buffer pointer for the index-th item
(index int)
| 744 | |
| 745 | // Get returns the buffer pointer for the index-th item |
| 746 | func (reader *ArrayValueReader) Get(index int) unsafe.Pointer { |
| 747 | if index < 0 || index >= reader.length { |
| 748 | return nil |
| 749 | } |
| 750 | return unsafe.Pointer(uintptr(reader.value) + uintptr(index*DataTypeBytes(reader.itemType))) |
| 751 | } |
| 752 | |
| 753 | // IsValid check if the item in index-th place is valid or not |
| 754 | func (reader *ArrayValueReader) IsValid(index int) bool { |
no test coverage detected