UnityEngine.Networking.NetBuffer.ReadByte C# (CSharp) Method

ReadByte() public method

public ReadByte ( ) : byte
return byte
        public byte ReadByte()
        {
            if (this.m_Pos >= this.m_Buffer.Length)
            {
                throw new IndexOutOfRangeException("NetworkReader:ReadByte out of range:" + this.ToString());
            }
            return this.m_Buffer[this.m_Pos++];
        }

Usage Example

コード例 #1
0
 public byte ReadByte()
 {
     return(m_buf.ReadByte());
 }