Value returns a byte slice of the node value.
()
| 315 | |
| 316 | // Value returns a byte slice of the node value. |
| 317 | func (n *leafPageElement) Value() []byte { |
| 318 | i := int(n.pos) + int(n.ksize) |
| 319 | j := i + int(n.vsize) |
| 320 | return UnsafeByteSlice(unsafe.Pointer(n), 0, i, j) |
| 321 | } |
| 322 | |
| 323 | func (n *leafPageElement) IsBucketEntry() bool { |
| 324 | return n.flags&uint32(BucketLeafFlag) != 0 |
no test coverage detected