Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
woozy
main
Top Level Namespace
Int
TCPSocket
Woozy
Block
BlockIdx
ChannelBackend
Chunk
ChunkPos
ClientBroadcastMessagePacket
ClientChunkPacket
ClientDisconnectPacket
ClientHandshakePacket
ClientPrivateMessagePacket
ConsoleInputActor
Change
Key
Backspace
Chars
CtrlLeft
CtrlRight
Delete
Down
Enter
Left
Right
Stop
Up
ConsoleOutputActor
GlobalPos
LocalPos
LocalPosXZ
Packet
PacketImpl
Pos2
Pos3
ServerBroadcastMessagePacket
ServerChunkPacket
ServerDisconnectPacket
ServerHandshakePacket
ServerPrivateMessagePacket
ServerPrivateMessageSuccessPacket
Side
SimpleConfig
Generated using Crystal 1.14.0
2024-12-28 07:12:27 UTC
struct
Woozy::
ClientDisconnectPacket
Woozy::ClientDisconnectPacket
Woozy::Packet
Struct
Value
Object
Defined in:
packets.cr
Constant Summary
Id
=
3_u8
Constructors
.new
Class Method Summary
.id
: UInt8
.read
(bytes : Bytes) :
self
| Nil
Instance Method Summary
#size
: Int32
#write
(bytes : Bytes)
Instance methods inherited from struct
Woozy::Packet
initialize
initialize
,
size : Int32
size
,
to_slice : Bytes
to_slice
,
write(bytes : Bytes)
write
Constructor methods inherited from struct
Woozy::Packet
new
new
Class methods inherited from struct
Woozy::Packet
from_id(id : UInt8, bytes : Bytes) : Packet | Nil
from_id
,
header_from_bytes(bytes : Bytes) : Tuple(UInt8, Int32)
header_from_bytes
Constructor Detail
def self.
new
#
[
View source
]
Class Method Detail
def self.
id
: UInt8
#
[
View source
]
def self.
read
(bytes : Bytes) :
self
| Nil
#
[
View source
]
Instance Method Detail
def
size
: Int32
#
[
View source
]
def
write
(bytes : Bytes)
#
[
View source
]