nurtex-codec 1.2.0

Library for serializing types from the Minecraft protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Трейт буффера
pub trait Buffer
where
  Self: Sized,
{
  /// Метод чтения типа из буффера
  fn read_buf(buffer: &mut std::io::Cursor<&[u8]>) -> Option<Self>;

  /// Метод записи типа в буффер
  fn write_buf(&self, buffer: &mut impl std::io::Write) -> std::io::Result<()>;
}