use napi::bindgen_prelude::BigInt;
use napi_derive::napi;
use napi::Result;
use crate::binary::BinaryStream;
use crate::stream::Endianness;
use crate::types::Long;
#[napi]
impl BinaryStream {
#[napi]
pub fn read_long(&mut self, endian: Option<Endianness>) -> Result<BigInt> {
Long::read(self, endian)
}
#[napi]
pub fn write_long(&mut self, value: BigInt, endian: Option<Endianness>) {
Long::write(self, value, endian);
}
}