Property | Type | Description | |
---|---|---|---|
stream | Stream |
Method | Description | |
---|---|---|
NativeStream ( |
Method | Description | |
---|---|---|
FreeManaged ( ) : void |
PhpResource.FreeManaged overridden to get rid of the contained context on Dispose.
|
|
RawFlush ( ) : bool | ||
RawLength ( ) : int |
Returns the Length property of the underlying stream.
|
|
RawRead ( byte buffer, int offset, int count ) : int | ||
RawSeek ( int offset, SeekOrigin whence ) : bool | ||
RawTell ( ) : int | ||
RawWrite ( byte buffer, int offset, int count ) : int | ||
SeekExpects ( long position, long length, long offset, SeekOrigin whence ) : long |
Get the expected position in the stream to check for Seek() failure.
|
public NativeStream ( |
||
ctx | ||
nativeStream | Stream | |
openingWrapper | ||
accessOptions | StreamAccessOptions | |
openedPath | string | |
context | ||
return | Pchp.Core |
protected RawRead ( byte buffer, int offset, int count ) : int | ||
buffer | byte | |
offset | int | |
count | int | |
return | int |
protected RawSeek ( int offset, SeekOrigin whence ) : bool | ||
offset | int | |
whence | SeekOrigin | |
return | bool |
protected RawWrite ( byte buffer, int offset, int count ) : int | ||
buffer | byte | |
offset | int | |
count | int | |
return | int |
protected SeekExpects ( long position, long length, long offset, SeekOrigin whence ) : long | ||
position | long | Actual position in the stream. |
length | long | The length of the stream. |
offset | long | The offset for the seek() operation. |
whence | SeekOrigin | Where to count the new position from. |
return | long |