Crate blaze_pk

source ·
Expand description

Rust library for working with the Blaze packet system this is the networking solution used by games such as Mass Effect 3, Battlefield 3, another Other EA games.

Modules

  • Traits for implementing encoding (Encodable) and decoding (Decodable) for different types and ValueType trait for specifying the Tdf type of a type
  • Error type used when decoding packets DecodeError and result type alias DecodeResult
  • Packet implementation for creating Packets along with types used by the router for creating and decoding contents / responses
  • Buffer reading wrapper to provided a way to easily read data from packet buffers provides easy functions for all the different tdf types
  • Router implementation for routing packet components to different functions and automatically decoding the packet contents to the function type
  • Serde serialization This module contains the serde Serialize implementations for the structures created by Pocket Relay
  • Implementation for Tags and TdfTypes
  • Types implementation for custom types used while encoding values with Blaze packets
  • Writer buffer implementation for writing different kinds of tdf values to byte form without creating a new structure TdfWriter

Macros

  • Macro for generating the ValueType implementation for a type

Derive Macros

  • Re-exports for derive macros Macro for deriving a component any enum that wants to implement PacketComponent must also implement Debug, Hash, PartialEq, and Eq these traits are required for routing
  • Re-exports for derive macros Macro for deriving components any enum that wants to implement PacketComponents must also implement Debug, Hash, PartialEq, and Eq these traits are required for routing