binarystream 1.2.0

Binarystream is a simple package designed to simplify streaming of binary data in Javascript, while being written in Rust.
Documentation
use napi_derive::napi;
use crate::binary::BinaryStream;
use crate::types::VarInt;

#[napi]
impl BinaryStream {
  #[napi]
  /**

   * **readVarInt**
   * 
   * Reads a 32 bit ( 4 bytes ) unsigned variable length integer from the stream. ( 0 to 4294967295 )
  */
  pub fn read_var_int(&mut self) -> u32 {
    VarInt::read(self)
  }

  #[napi]
  /**

   * **writeVarInt**
   * 
   * Writes a 32 bit ( 4 bytes ) unsigned variable length integer to the stream. ( 0 to 4294967295 )
  */
  pub fn write_var_int(&mut self, value: u32) {
    VarInt::write(self, value);
  }
}