public IPacketWriter Append(short value) { if (!AllowWrite) { throw new PacketUnwriteableException("AllowWrite is set to false, no permission to write."); } Payload.AddRange(ByteEncoding.EncodeShort(value)); return(this); }