Перейти к основному содержимому

McProtoNet.Primitives

Types: 8.

TypesDescription
static class ExtensionsProvides extension methods that read, write and measure Minecraft protocol VarInt values.
struct IncomingPacketRepresents one packet read from the wire, with the id already parsed and the body already decompressed.
struct MemoryOwner<T>Represents a block of memory rented from ArrayPool<T>.
ref struct MinecraftPrimitiveReaderProvides a forward-only reader for the primitive types of the Minecraft protocol.
sealed class MinecraftPrimitiveWriterProvides a forward-only writer for the primitive types of the Minecraft protocol, backed by an ArrayBufferWriter<T>.
static class MinecraftPrimitiveWriterCacheProvides a thread-local cache of MinecraftPrimitiveWriter instances, so a send path does not allocate a writer and its buffer for every packet.
struct OutgoingPacketRepresents a packet to be written to the wire, backed by a pooled buffer.
sealed class PooledBlockRepresents an array rented from an ArrayPool<T> and shared through a reference count.