Module byte_utils

Module byte_utils 

Source

Constants§

DISCRIMINATOR_AS_BYTES
DISCRIMINATOR_AS_HEX
The discriminator of Price Feed Accounts on mainnet

Functions§

hex_to_bytes
A very minimal tool to convert a hex string like “22f123639” into the byte equivalent.
interpret_bytes_as_i32
A very minimal utility to interpret some bytes as an i32
interpret_bytes_as_i64
A very minimal utility to interpret some bytes as an i64
interpret_bytes_as_u64
A very minimal utility to interpret some bytes as an u64

Type Aliases§

PubkeyBytes
Bytes that will be a Pubkey when decoded (this crate has dependencies and therefore does not read Pubkeys)