Module ppspp_chunk
Library for PPSPP over UDP, aka Swift protocol.
Description
This module implements a library of functions necessary to handle the wire-protocol of PPSPP over UDP, including functions for encoding and decoding messages.
Data Types
addressing_method()
addressing_method() = chunk_32bit_bins |chunk_64bit_bins |chunk_64bit_bytes |chunk_32bit_chunks |chunk_64bit_chunks
bin_number()
abstract datatype: bin_number()
byte_range()
abstract datatype: byte_range()
chunk_range()
abstract datatype: chunk_range()
spec()
abstract datatype: spec()
Function Index
pack/2 | |
unpack/2 | unpack a chunk spec from a message, typically a have message. |
Function Details
pack/2
pack(Chunk_Spec :: spec(),Addressing_Method :: addressing_method()) ->binary()
unpack/2
unpack(X1 :: addressing_method(), Range :: binary()) ->{spec(), binary()}
unpack a chunk spec from a message, typically a have message
Deconstruct PPSPP UDP datagram into multiple erlang terms, including parsing any additional data within the same segment. Any parsing failure is fatal and will propagate back to the attempted datagram unpacking.