AoMEngineLibrary.Graphics.Brg.BrgBinaryReader.ReadString C# (CSharp) Method

ReadString() public method

public ReadString ( int length ) : string
length int
return string
        public string ReadString(int length)
        {
            return Encoding.UTF8.GetString(this.ReadBytes(length));
        }

Same methods

BrgBinaryReader::ReadString ( byte terminator = 0x0 ) : string

Usage Example

Example #1
0
 public BrgHeader(BrgBinaryReader reader)
 {
     this.Magic = reader.ReadString(4);
     this.Unknown01 = reader.ReadInt32();
     this.NumMaterials = reader.ReadInt32();
     this.Unknown02 = reader.ReadInt32();
     this.NumMeshes = reader.ReadInt32();
     this.Reserved = reader.ReadInt32();
     this.Unknown03 = reader.ReadInt32();
 }
All Usage Examples Of AoMEngineLibrary.Graphics.Brg.BrgBinaryReader::ReadString