public static int get_var_int(LuaBytes bytes, int offset, out int size) { offset--; if (offset < 0 || offset > bytes.length) { size = 0; return(0); } return(ByteUtil.VarBytesToInt(bytes.bytes, offset, out size)); }
public static int get_var_int(LuaBytes bytes, int offset, out int size) { offset--; if (offset < 0 || offset > bytes.length) { size = 0; return(0); } return(ByteUtil.VarBytesToInt(bytes.bytes, offset, out size)); }