f6fee4ac3a
* Use infallible, unchecked methods to write into the serialization buffer We serialize in two steps: first we compute the size of the buffer, then we write into it. Therefore there's no need to check if each individual write fits the buffer - we know it does we just computed the required size. * serialize_parameters: remove extra loop/borrows Remove one extra loop over accounts to gather account lengths. Also gather all accounts at once and avoid temporary borrows. * Move creating MemoryRegions for serialized parameters from create_vm to serialize_parameters This is in preparation of using multiple MemoryRegions once we land direct account mapping. * bpf_loader: introduce internal API to build serialization buffer/regions This is prep work for landing the direct_mapping feature, which maps account data in their own memory regions. * serialization: fix after API changes |
||
---|---|---|
.. | ||
src | ||
Cargo.lock | ||
Cargo.toml |