Source File
name_bit.go
Belonging Package
github.com/goccy/go-json/internal/jsonstring
package jsonstring// NameBit is one of 64 bits for a name of an object, chosen by the length of the name and its first and last// bytes: two names of other bits differ. The bits of the names of an object tell most new names from the ones it// has without comparing them, where a name which an object has twice is an error.func ( []byte) uint64 {:= uint(len())if len() > 0 {+= uint([0])*7 + uint([len()-1])*31}return 1 << ( & 63)}
![]() |
The pages are generated with Golds v0.8.7. (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. |