// FromBytes returns the id represented by the 8-byte byte array.
FromBytes returns the id represented by the 8-byte byte array.
// FromBytes returns the id represented by the 8 - byte byte array .
func FromBytes(bytes []byte) (ID, error) {
	if len(bytes) != Size {
		return Nil, fmt.Errorf("unexpected number of bytes for flake id: %d", len(bytes))
	}
	return ID(binary.BigEndian.Uint64(bytes)), nil
}
func FromBytes ( bytes [ ] byte ) ( ID , error ) { if len ( bytes ) != Size { return Nil , fmt . Errorf ( " " , len ( bytes ) ) } return ID ( binary . BigEndian . Uint64 ( bytes ) ) , nil }
FromBytes returns the id represented by the 8-byte byte array.
FromBytes returns the id represented by the 8 - byte byte array .