Here are the examples of the csharp api System.IO.BinaryWriter.WriteAsByte(byte) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
19
Source : BinaryWriterExtensions.cs
with MIT License
from dotnetGame
with MIT License
from dotnetGame
public static void Writereplacedlot(this BinaryWriter bw, Slot slot)
{
bw.WriteAsBoolean(!slot.IsEmpty);
if (!slot.IsEmpty)
{
bw.WriteAsVarInt((uint)slot.BlockId, out _);
bw.WriteAsByte(slot.ItemCount);
if (slot.NBT != null)
slot.NBT.WriteTo(bw.BaseStream);
else
bw.WriteAsByte(0);
}
}
19
Source : BinaryWriterExtensions.cs
with MIT License
from dotnetGame
with MIT License
from dotnetGame
public static void Writereplacedlot(this BinaryWriter bw, Slot slot)
{
bw.WriteAsBoolean(!slot.IsEmpty);
if (!slot.IsEmpty)
{
bw.WriteAsVarInt((uint)slot.BlockId, out _);
bw.WriteAsByte(slot.ItemCount);
if (slot.NBT != null)
slot.NBT.WriteTo(bw.BaseStream);
else
bw.WriteAsByte(0);
}
}
19
Source : BinaryWriterExtensions.cs
with MIT License
from dotnetGame
with MIT License
from dotnetGame
public static BinaryWriter WriteAsEnreplacedyMetadata(this BinaryWriter bw, byte index, EnreplacedyMetadataType type)
{
bw.WriteAsByte(index);
bw.WriteAsByte((byte)type);
return bw;
}