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::ZigZag;

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

   * **readZigZag**
   * 
   * Reads a 32 bit ( 4 bytes ) zigzag encoded signed variable length integer from the stream. ( -2147483648 to 2147483647 )
  */
  pub fn read_zig_zag(&mut self) -> i32 {
    ZigZag::read(self)
  }

  #[napi]
  /**

   * **writeZigZag**
   * 
   * Writes a 32 bit ( 4 bytes ) zigzag encoded signed variable length integer to the stream. ( -2147483648 to 2147483647 )
  */
  pub fn write_zig_zag(&mut self, value: i32) {
    ZigZag::write(self, value);
  }
}