fn emit_storage_find(bytecode: &mut Vec<u8>, arg_count: usize) {
if arg_count == 1 {
bytecode.push(0x10); bytecode.push(0x50); } else {
bytecode.push(0x50); }
emit_syscall(bytecode, "System.Storage.GetContext");
emit_syscall(bytecode, "System.Storage.Find");
}
fn emit_storage_put(bytecode: &mut Vec<u8>) {
bytecode.push(0x50); emit_syscall(bytecode, "System.Storage.GetContext");
emit_syscall(bytecode, "System.Storage.Put");
bytecode.push(0x11); }
fn emit_storage_get(bytecode: &mut Vec<u8>) {
emit_syscall(bytecode, "System.Storage.GetReadOnlyContext");
emit_syscall(bytecode, "System.Storage.Get");
}
fn emit_storage_delete(bytecode: &mut Vec<u8>) {
emit_syscall(bytecode, "System.Storage.GetContext");
emit_syscall(bytecode, "System.Storage.Delete");
bytecode.push(0x11); }