Source File
bitmap.go
Belonging Package
github.com/parquet-go/parquet-go
package parquetimporttype bitmap struct {bits []uint64}func ( *bitmap) ( int) {= ( + 63) / 64if cap(.bits) < {.bits = make([]uint64, , 2*)} else {.bits = .bits[:].clear()}}func ( *bitmap) () {for := range .bits {.bits[] = 0}}var (bitmapPool sync.Pool // *bitmap)func acquireBitmap( int) *bitmap {, := bitmapPool.Get().(*bitmap)if == nil {= &bitmap{bits: make([]uint64, , 2*)}} else {.reset()}return}func releaseBitmap( *bitmap) {if != nil {bitmapPool.Put()}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |