C# Class System.IO.MemoryStream

Inheritance: Stream
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

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

BeginWrite() public méthode

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

CopyTo() public méthode

public CopyTo ( Stream destination, int bufferSize ) : void
destination Stream
bufferSize int
Résultat void

CopyToAsync() public méthode

public CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
destination Stream
bufferSize int
cancellationToken CancellationToken
Résultat Task

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndRead() public méthode

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

EndWrite() public méthode

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

FlushAsync() public méthode

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
Résultat Task

GetBuffer() public méthode

public GetBuffer ( ) : byte[]
Résultat byte[]

MemoryStream() public méthode

public MemoryStream ( ) : System.Threading
Résultat System.Threading

MemoryStream() public méthode

public MemoryStream ( byte buffer ) : System.Threading
buffer byte
Résultat System.Threading

MemoryStream() public méthode

public MemoryStream ( byte buffer, bool writable ) : System.Threading
buffer byte
writable bool
Résultat System.Threading

MemoryStream() public méthode

public MemoryStream ( byte buffer, int index, int count ) : System.Threading
buffer byte
index int
count int
Résultat System.Threading

MemoryStream() public méthode

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

MemoryStream() public méthode

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

MemoryStream() public méthode

public MemoryStream ( int capacity ) : System.Threading
capacity int
Résultat System.Threading

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

ReadAsync() public méthode

public ReadAsync ( Byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer Byte
offset int
count int
cancellationToken CancellationToken
Résultat Task

ReadByte() public méthode

public ReadByte ( ) : int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin loc ) : long
offset long
loc SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

ToArray() public méthode

public ToArray ( ) : byte[]
Résultat byte[]

TryGetBuffer() public méthode

public TryGetBuffer ( ArraySegment &buffer ) : bool
buffer ArraySegment
Résultat bool

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void

WriteAsync() public méthode

public WriteAsync ( Byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer Byte
offset int
count int
cancellationToken CancellationToken
Résultat Task

WriteByte() public méthode

public WriteByte ( byte value ) : void
value byte
Résultat void

WriteTo() public méthode

public WriteTo ( Stream stream ) : void
stream Stream
Résultat void