Procs
proc getVar*(self: PacketPeer): Variant {.
gcsafe, locks: 0.}proc putVar*(self: PacketPeer; varr: Variant): int64 {.
gcsafe, locks: 0.}proc getPacket*(self: PacketPeer): PoolByteArray {.
gcsafe, locks: 0.}proc putPacket*(self: PacketPeer; buffer: PoolByteArray): Error {.
gcsafe, locks: 0.}proc getPacketError*(self: PacketPeer): Error {.
gcsafe, locks: 0.}proc getAvailablePacketCount*(self: PacketPeer): int64 {.
gcsafe, locks: 0.}