packageboltimport("unsafe")// leafNode represents a node on a leaf page.typeleafNodestruct{flagsuint16keySizeuint16dataSizeuint32datauintptr// Pointer to the beginning of the data.}// key returns a byte slice that of the key data.func(n*leafNode)key()[]byte{return(*[MaxKeySize]byte)(unsafe.Pointer(&n.data))[:n.keySize]}