RageLib.Data.PartialStream - indilo53/gta-toolkit GitHub Wiki
Represents a part of a stream.
namespace: RageLib.Data
Inheritance Hierarchy
Syntax
public class PartialStream
Constructors
| :white_large_square: |
prototype |
description |
| method |
PartialStream (Stream baseStream, GetOffsetDelegate getOffsetDelegate, GetLengthDelegate getLengthDelegate, SetLengthDelegate setLengthDelegate=null) |
__ |
Properties
| :white_large_square: |
name |
description |
| property |
CanRead |
Gets a value indicating whether the stream supports reading. |
| property |
CanSeek |
Gets a value indicating whether the stream supports seeking. |
| property |
CanWrite |
Gets a value indicating whether the stream supports writing. |
| property |
Length |
Gets the length of the stream. |
| property |
Position |
Gets or sets the position within the stream. |
Methods
| :white_large_square: |
prototype |
description |
| method |
void Flush() |
Clears all buffers for the stream. |
| method |
int Read(byte[] buffer, int offset, int count) |
Reads a sequence of bytes from the stream. |
| method |
long Seek(long offset, SeekOrigin origin) |
Sets the position within the stream. |
| method |
void SetLength(long value) |
Sets the length of the stream. |
| method |
void Write(byte[] buffer, int offset, int count) |
Writes a sequence of bytes to the stream. |
Events
| :white_large_square: |
name |
description |