System.Windows.Forms.FileByteProvider.ReadByte C# (CSharp) Method

ReadByte() public method

Reads a byte from the file.
public ReadByte ( long index ) : byte
index long the index of the byte to read
return byte
		public byte ReadByte(long index)
		{
			if(_writes.Contains(index))
				return _writes[index];

			if(_fileStream.Position != index)
				_fileStream.Position = index;

			byte res = (byte)_fileStream.ReadByte();
			return res;
		}