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