C# Class System.IO.MemoryStream

Inheritance: Stream
ファイルを表示 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
CopyTo ( Stream destination, int bufferSize ) : void
CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
GetBuffer ( ) : byte[]
MemoryStream ( ) : System.Threading
MemoryStream ( byte buffer ) : System.Threading
MemoryStream ( byte buffer, bool writable ) : System.Threading
MemoryStream ( byte buffer, int index, int count ) : System.Threading
MemoryStream ( byte buffer, int index, int count, bool writable ) : System.Threading
MemoryStream ( byte buffer, int index, int count, bool writable, bool publiclyVisible ) : System.Threading
MemoryStream ( int capacity ) : System.Threading
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( Byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
ReadByte ( ) : int
Seek ( long offset, SeekOrigin loc ) : long
SetLength ( long value ) : void
ToArray ( ) : byte[]
TryGetBuffer ( ArraySegment &buffer ) : bool
Write ( byte buffer, int offset, int count ) : void
WriteAsync ( Byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteByte ( byte value ) : void
WriteTo ( Stream stream ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CopyToAsyncImpl ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
EnsureCapacity ( int value ) : bool
EnsureWriteable ( ) : void
InternalEmulateRead ( int count ) : int
InternalGetBuffer ( ) : byte[]
InternalGetPosition ( ) : int
InternalReadInt32 ( ) : int
ReadAsyncImpl ( Byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteAsyncImpl ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task

Method Details

BeginRead() public method

public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
return IAsyncResult

BeginWrite() public method

public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
return IAsyncResult

CopyTo() public method

public CopyTo ( Stream destination, int bufferSize ) : void
destination Stream
bufferSize int
return void

CopyToAsync() public method

public CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
destination Stream
bufferSize int
cancellationToken CancellationToken
return Task

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EndRead() public method

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

EndWrite() public method

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

Flush() public method

public Flush ( ) : void
return void

FlushAsync() public method

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
return Task

GetBuffer() public method

public GetBuffer ( ) : byte[]
return byte[]

MemoryStream() public method

public MemoryStream ( ) : System.Threading
return System.Threading

MemoryStream() public method

public MemoryStream ( byte buffer ) : System.Threading
buffer byte
return System.Threading

MemoryStream() public method

public MemoryStream ( byte buffer, bool writable ) : System.Threading
buffer byte
writable bool
return System.Threading

MemoryStream() public method

public MemoryStream ( byte buffer, int index, int count ) : System.Threading
buffer byte
index int
count int
return System.Threading

MemoryStream() public method

public MemoryStream ( byte buffer, int index, int count, bool writable ) : System.Threading
buffer byte
index int
count int
writable bool
return System.Threading

MemoryStream() public method

public MemoryStream ( byte buffer, int index, int count, bool writable, bool publiclyVisible ) : System.Threading
buffer byte
index int
count int
writable bool
publiclyVisible bool
return System.Threading

MemoryStream() public method

public MemoryStream ( int capacity ) : System.Threading
capacity int
return System.Threading

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadAsync() public method

public ReadAsync ( Byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer Byte
offset int
count int
cancellationToken CancellationToken
return Task

ReadByte() public method

public ReadByte ( ) : int
return int

Seek() public method

public Seek ( long offset, SeekOrigin loc ) : long
offset long
loc SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

ToArray() public method

public ToArray ( ) : byte[]
return byte[]

TryGetBuffer() public method

public TryGetBuffer ( ArraySegment &buffer ) : bool
buffer ArraySegment
return bool

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

WriteAsync() public method

public WriteAsync ( Byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer Byte
offset int
count int
cancellationToken CancellationToken
return Task

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void

WriteTo() public method

public WriteTo ( Stream stream ) : void
stream Stream
return void