Expand description

Solana program utilities for Plain Old Data types

Structs

A Pubkey that encodes None as all 0, meant to be usable as a Pod type, similar to all NonZero* number types from the bytemuck library.

The standard bool is not a Pod, define a replacement that is

i16 type that can be used in Pods

i64 type that can be used in Pods

u16 type that can be used in Pods

u64 type that can be used in Pods

Functions

Convert a Pod into a slice (zero copy)

Convert a slice into a Pod (zero copy)

Convert a slice into a mutable Pod (zero copy)

On-chain size of a Pod type

Maybe convert a slice into a Pod (zero copy)