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

The standard u16 can cause alignment issues when placed in a Pod, define a replacement that is usable in all Pods

The standard u64 can cause alignment issues when placed in a Pod, define a replacement that is usable in all 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)