Access to the ControlPacket
constructor.
Access to the ControlPacket
constructor.
a PlanetSideControlPacket
a ControlPacket
Access to the CryptoPacket
constructor.
Access to the CryptoPacket
constructor.
na
a PlanetSideCryptoPacket
a CryptoPacket
Access to the GamePacket
constructor.
Access to the GamePacket
constructor.
na
a PlanetSideGamePacket
a GamePacket
Transform a ByteVector
into a ControlPacket
.
Transform a ByteVector
into a ControlPacket
.
the the raw data to decode
a PlanetSideControlPacket
Transform a ByteVector
into a GamePacket
.
Transform a ByteVector
into a GamePacket
.
the the raw data to decode
a PlanetSideGamePacket
Transforms ByteVector
data into a PlanetSide packet.
Transforms ByteVector
data into a PlanetSide packet.
Similar to the UnmarshalPacket
but it does not process packet headers.
It supports GamePacket
in exchange for not supporting CryptoPacket
(like UnMarshalPacket
).
Mostly used in tests.
raw, unencrypted packet
PlanetSidePacket
UnMarshalPacket
Overloaded method for transforming a GamePacket
into its BitVector
representation.
Overloaded method for transforming a GamePacket
into its BitVector
representation.
the game packet to encode
a BitVector
translated from the packet's data
Overloaded method for transforming a CryptoPacket
into its BitVector
representation.
Overloaded method for transforming a CryptoPacket
into its BitVector
representation.
the crypto packet to encode
a BitVector
translated from the packet's data
Overloaded method for transforming a ControlPacket
into its BitVector
representation.
Overloaded method for transforming a ControlPacket
into its BitVector
representation.
the control packet to encode
a BitVector
translated from the packet's data
Transform a kind of packet into the sequence of data that represents it.
Transform a kind of packet into the sequence of data that represents it. Wraps around the encoding process for all valid packet container types.
the packet to encode
a BitVector
translated from the packet's data
A lower bound on the packet size
Helper function to decode a packet without specifying a crypto state.
Helper function to decode a packet without specifying a crypto state. Used when there is no crypto state available such as in tests.
packet data bytes
PlanetSidePacketContainer
Transforms ByteVector
data into a PlanetSide packet.
Transforms ByteVector
data into a PlanetSide packet.
Attempt to decode with an optional header and required payload.
Does not decode into a GamePacket
.
the raw packet
the current state of the connection's crypto. This is only used when decoding crypto packets as they do not have opcodes
PlanetSidePacketContainer
Perform decryption on an EncryptedPacket
.
Perform decryption on an EncryptedPacket
.
the current state of the connection's crypto
an encrypted packet
a general packet container type
Compose the decrypted payload data from a formerly encrypted packet.
Compose the decrypted payload data from a formerly encrypted packet.
the current state of the connection's crypto
an encrypted packet
a sequence of decrypted data
Perform encryption on the packet's raw data.
Perform encryption on the packet's raw data.
the current cryptographic state
na
a ByteVector
that represents the packet data
an EncryptedPacket
Encrypt the provided packet using the provided cryptographic state.
Encrypt the provided packet using the provided cryptographic state. Translate the packet into data to send on to the actual encryption process.
the current cryptographic state
the unencrypted packet
an EncryptedPacket
Transform the privileged packet
into a RawPacket
representation to get:
the sequence number,
and the raw ByteVector
data.
Transform the privileged packet
into a RawPacket
representation to get:
the sequence number,
and the raw ByteVector
data.
the unencrypted packet
paired data based on the packet
Transform either a GamePacket
or a ControlPacket
into a BitVector
.
Transform either a GamePacket
or a ControlPacket
into a BitVector
.
This is not as thorough as the process of unmarshalling though the results are very similar.
a packet
a BitVector
that represents the packet
Transform decrypted packet data into the type of packet that it represents.
Transform decrypted packet data into the type of packet that it represents.
Will not compose data into an EncryptedPacket
or into a CryptoPacket
.
na
the decrypted packet data
a general packet container type