use napi_derive::napi;
use napi::Result;
use crate::binary::BinaryStream;
use crate::stream::Endianness;
use crate::types::Int24;
#[napi]
impl BinaryStream {
#[napi]
pub fn read_int24(&mut self, endian: Option<Endianness>) -> Result<i32> {
Int24::read(self, endian)
}
#[napi]
pub fn write_int24(&mut self, value: i32, endian: Option<Endianness>) {
Int24::write(self, value, endian);
}
}