Procs
func readRawPacket(data: openArray[byte]): Result[ tuple[packet: RawPacket, bytesRead: int], int] {. ...raises: [MnPacketParsingError], tags: [], forbids: [].}
- Reads a packet from the given byte sequence and returns a RawPacket that has the ID and the buffer. Returns an error if the packet is too short. Source Edit