MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Uint64ToBytes

Function Uint64ToBytes

IceFireDB-SQLProxy/pkg/mysql/mysql/util.go:251–262  ·  view source on GitHub ↗
(n uint64)

Source from the content-addressed store, hash-verified

249}
250
251func Uint64ToBytes(n uint64) []byte {
252 return []byte{
253 byte(n),
254 byte(n >> 8),
255 byte(n >> 16),
256 byte(n >> 24),
257 byte(n >> 32),
258 byte(n >> 40),
259 byte(n >> 48),
260 byte(n >> 56),
261 }
262}
263
264func FormatBinaryDate(n int, data []byte) ([]byte, error) {
265 switch n {

Callers 3

formatBinaryValueFunction · 0.70
DumpMethod · 0.70
writeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected