pub fn decode_segments<const N: usize>(
data: &[u8],
) -> Option<(usize, [DecodedSegment; N])>Expand description
Decode segment entries from a segmented account.
Returns up to N segments. Works on raw account data that
starts with a 16-byte header followed by the segment registry.