lunify 1.1.0

A crate for converting Lua byte code to different versions and formats
Documentation
1
2
3
4
5
6
7
8
9
use super::InstructionLayout;
use crate::serialization::ByteStream;
use crate::{LunifyError, Settings};

pub(crate) trait LuaInstruction: Sized {
    fn from_byte_stream(byte_stream: &mut ByteStream, settings: &Settings, layout: &InstructionLayout) -> Result<Self, LunifyError>;
    fn move_stack_accesses(&mut self, stack_start: u64, offset: i64);
    fn to_u64(&self, settings: &Settings) -> Result<u64, LunifyError>;
}