SharpMod.Message.WriteByte C# (CSharp) Method

WriteByte() public static method

Writes a byte value. If the message buffer is already full, writing will be omitted.
public static WriteByte ( byte val ) : void
val byte /// A byte value. ///
return void
        public static void WriteByte(byte val)
        {
            #if DEBUG
            messageInformation.Arguments.Add(new MessageArgument(typeof(byte), (byte)val));
            #endif
            if (count + sizeof(byte) < MaxLength) {
                MetaModEngine.engineFunctions.WriteByte((int)val);
                count += sizeof(byte);
            }
        }