buildPacket

inline fun buildPacket(block: BytePacketBuilder.() -> Unit): ByteReadPacket

Build a byte packet in block lambda. Creates a temporary builder and releases it in case of failure