Property | Type | Description | |
---|---|---|---|
ThisLength | long | ||
ThisPosition | long | ||
ThisStart | long |
Method | Description | |
---|---|---|
CreateWithBounds ( Stream BaseStream, long LowerBound, long UpperBound, bool CanWrite = null ) : SliceStream |
Creates a SliceStream specifying a start offset and a end offset.
|
|
CreateWithLength ( Stream BaseStream, long ThisStart, long ThisLength = -1, bool CanWrite = null ) : SliceStream |
Creates a SliceStream specifying a start offset and a length.
|
|
Read ( byte buffer, int offset, int count ) : int |
Read a chunk from this SliceStream and move its cursor after that chunk. Only will be able to read inside the bounds of this Slice. It won't change the ParentStream cursor.
|
|
Seek ( long offset, SeekOrigin origin ) : long |
Seeks the SliceStream without altering the original Stream.
|
|
SetLength ( long value ) : void |
Not implemented.
|
|
Write ( byte buffer, int offset, int count ) : void |
Writes a chunk from this SliceStream and move its cursor after that chunk. Only will be able to write inside the bounds of this Slice. It won't change the ParentStream cursor.
|
Method | Description | |
---|---|---|
SliceStream ( Stream BaseStream, long ThisStart, long ThisLength = -1, bool CanWrite = null, bool AllowSliceOutsideHigh = true ) : System |
Creates a SliceStream specifying a start offset and a length. Please use CreateWithLength or CreateWithBounds to initialite the object.
|
static public CreateWithBounds ( Stream BaseStream, long LowerBound, long UpperBound, bool CanWrite = null ) : SliceStream | ||
BaseStream | Stream | Parent Stream |
LowerBound | long | |
UpperBound | long | |
CanWrite | bool | Determines if the Stream will be writtable. |
return | SliceStream |
static public CreateWithLength ( Stream BaseStream, long ThisStart, long ThisLength = -1, bool CanWrite = null ) : SliceStream | ||
BaseStream | Stream | Base Stream |
ThisStart | long | Starting Offset |
ThisLength | long | Length of the Slice |
CanWrite | bool | Determines if the Stream will be writtable. |
return | SliceStream |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | ByteArray to write to |
offset | int | Offset of the ByteArray to write to |
count | int | Number of bytes to read |
return | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | Offset to seek |
origin | SeekOrigin | Origin for the seeking |
return | long |
protected SliceStream ( Stream BaseStream, long ThisStart, long ThisLength = -1, bool CanWrite = null, bool AllowSliceOutsideHigh = true ) : System | ||
BaseStream | Stream | Base Stream |
ThisStart | long | Starting Offset |
ThisLength | long | Length of the Slice |
CanWrite | bool | Determines if the Stream will be writtable. |
AllowSliceOutsideHigh | bool | |
return | System |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | ByteArray to read from |
offset | int | Offset of the ByteArray to read from |
count | int | Number of bytes to write |
return | void |