MCPcopy Create free account
hub / github.com/Lightprotocol/light-protocol-v1 / pack_into_slice

Method pack_into_slice

program/src/nullifier_state.rs:38–44  ·  view source on GitHub ↗
(&self, dst: &mut [u8])

Source from the content-addressed store, hash-verified

36 }
37
38 fn pack_into_slice(&self, dst: &mut [u8]) {
39 let dst = array_mut_ref![dst, 0, NullifierState::LEN];
40 let (is_initialized_dst, account_type_dst) = mut_array_refs![dst, 1, 1];
41 *is_initialized_dst = [1];
42 *account_type_dst = [3];
43 msg!("packed inserted_nullifier");
44 }
45}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected