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

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

   * **readInt8**
   * 
   * Reads a signed 8-bit ( 1 byte ) integer from the stream. ( -128 to 127 )
  */
  pub fn read_int8(&mut self) -> i8 {
    Int8::read(self)
  }

  #[napi]
  /**

   * **writeInt8**
   * 
   * Writes a signed 8-bit ( 1 byte ) integer to the stream. ( -128 to 127 )
  */
  pub fn write_int8(&mut self, value: i8) {
    Int8::write(self, value);
  }
}