Line data Source code
1 : #ifndef HEADER_fd_src_flamenco_runtime_program_fd_bpf_loader_serialization_h 2 : #define HEADER_fd_src_flamenco_runtime_program_fd_bpf_loader_serialization_h 3 : 4 : #include "../../fd_flamenco_base.h" 5 : #include "../../vm/fd_vm.h" 6 : 7 9774 : #define MAX_PERMITTED_DATA_INCREASE (10240UL) 8 8478 : #define FD_BPF_ALIGN_OF_U128 (8UL ) 9 : #define FD_NON_DUP_MARKER (0xFF ) 10 : 11 : FD_PROTOTYPES_BEGIN 12 : 13 : uchar * 14 : fd_bpf_loader_input_serialize_aligned( fd_exec_instr_ctx_t ctx, 15 : ulong * sz, 16 : ulong * pre_lens, 17 : fd_vm_input_region_t * input_mem_regions, 18 : uint * input_mem_regions_cnt, 19 : fd_vm_acc_region_meta_t * acc_region_metas, 20 : int copy_account_data ); 21 : 22 : int 23 : fd_bpf_loader_input_deserialize_aligned( fd_exec_instr_ctx_t ctx, 24 : ulong const * pre_lens, 25 : uchar * buffer, 26 : ulong buffer_sz, 27 : int copy_account_data ); 28 : 29 : uchar * 30 : fd_bpf_loader_input_serialize_unaligned( fd_exec_instr_ctx_t ctx, 31 : ulong * sz, 32 : ulong * pre_lens, 33 : fd_vm_input_region_t * input_mem_regions, 34 : uint * input_mem_regions_cnt, 35 : fd_vm_acc_region_meta_t * acc_region_metas, 36 : int copy_account_data ); 37 : 38 : int 39 : fd_bpf_loader_input_deserialize_unaligned( fd_exec_instr_ctx_t ctx, 40 : ulong const * pre_lens, 41 : uchar * input, 42 : ulong input_sz, 43 : int copy_account_data ); 44 : 45 : 46 : FD_PROTOTYPES_END 47 : 48 : #endif /* HEADER_fd_src_flamenco_runtime_program_fd_bpf_loader_serialization_h */