MCPcopy
hub / github.com/bwmarrin/snowflake / Bytes

Method Bytes

snowflake.go:301–303  ·  view source on GitHub ↗

Bytes returns a byte slice of the snowflake ID

()

Source from the content-addressed store, hash-verified

299
300// Bytes returns a byte slice of the snowflake ID
301func (f ID) Bytes() []byte {
302 return []byte(f.String())
303}
304
305// ParseBytes converts a byte slice into a snowflake ID
306func ParseBytes(id []byte) (ID, error) {

Callers 3

Base64Method · 0.95
TestPrintAllFunction · 0.80
TestBytesFunction · 0.80

Calls 1

StringMethod · 0.95

Tested by 2

TestPrintAllFunction · 0.64
TestBytesFunction · 0.64