System.IO.UnmanagedMemoryStream.UnmanagedMemoryStream.ReadByte C# (CSharp) Méthode

ReadByte() public méthode

public ReadByte ( ) : int
Résultat int
		public override int ReadByte ()
		{
			if (closed)
				throw new ObjectDisposedException("The stream is closed");
			
			if (fileaccess== FileAccess.Write)
				throw new NotSupportedException("Stream does not support reading");
			else {
				if (current_position >= length)
					return (-1);
				return (int) Marshal.ReadByte(initial_pointer, (int) current_position++);
			}
		}