Soulless.Protocol.GamePacket (Soulless v0.2.0)

View Source

Summary

Types

t()

@type t() :: %Soulless.Protocol.GamePacket{
  body: struct() | nil,
  kind: Soulless.Protocol.GenericPacket.kind() | nil,
  request_id: (non_neg_integer() | nil) | nil,
  rpc: (String.t() | nil) | nil
}

Functions

parse(binary, module_cache)

serialize(message, module_cache)

@spec serialize(t(), Soulless.Protocol.GenericPacket.cache()) ::
  {nonempty_binary(), Soulless.Protocol.GenericPacket.cache()}