mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 07:41:02 +00:00
corrected comment to reflect reality
This commit is contained in:
parent
fbdce18f70
commit
af3714e5ab
1 changed files with 2 additions and 2 deletions
|
|
@ -522,8 +522,8 @@ func (b *Bitmap) WriteTo(w io.Writer) (n int64, err error) {
|
|||
headerSize := headerBaseSize
|
||||
|
||||
// Build header before writing individual container blocks.
|
||||
// Metadata for each container is 4+8+4 = sizeof(key) + sizeof(container_type)+sizeof(cardinality) + sizeof(file offset)
|
||||
buf := make([]byte, headerSize+(containerCount*(4+4+4+4)))
|
||||
// Metadata for each container is 8+2+2+4 = sizeof(key) + sizeof(container_type)+sizeof(cardinality) + sizeof(file offset)
|
||||
buf := make([]byte, headerSize+(containerCount*(8+2+2+4)))
|
||||
// Cookie header section.
|
||||
binary.LittleEndian.PutUint32(buf[0:], thisCookie)
|
||||
binary.LittleEndian.PutUint32(buf[4:], uint32(containerCount))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue