![]() |
IOLink C# 1.16.1
|
A factory to create RandomAccess instances from various ressources. More...
Public Member Functions | |
| RandomAccessFactory (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| void | Dispose () |
Static Public Member Functions | |
| static global::System.Runtime.InteropServices.HandleRef | getCPtr (RandomAccessFactory obj) |
| static global::System.Runtime.InteropServices.HandleRef | swigRelease (RandomAccessFactory obj) |
| static RandomAccess | Allocate (uint size) |
| Create an in-memory RandomAccess of given size. | |
| static RandomAccess | CopyInMemory (RandomAccess randomAccess) |
| static RandomAccess | MapFile (string filePath) |
| static unsafe RandomAccess | FromBuffer (byte[] buffer, uint size) |
| static RandomAccess | OpenURIRead (Uri uri) |
| static RandomAccess | OpenHTTPRead (Uri uri, string method, HTTPHeaders headers) |
| static RandomAccess | ExtractRegion (RandomAccess src, uint offset) |
| static RandomAccess | ExtractRegion (RandomAccess src, uint offset, uint size) |
| static RandomAccess | FromStream (StreamAccess stream) |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
Protected Attributes | |
| bool | swigCMemOwn |
A factory to create RandomAccess instances from various ressources.
|
inlinestatic |
Load given RandomAccess in memory. If storage is already an in-memory RandomAccess, return it (no copy are done).
| InvalidArgument | if input randomAccess is null |
|
inlinestatic |
Creates an accessor to a subset of a RandomAccess.
| src | The accessor to create the subset from |
| offset | The offset from the start of the source accessor |
| InvalidArgument | if input randomAccess is null |
| Error | When offset is out of range. |
|
inlinestatic |
Creates an accessor to a subset of a RandomAccess.
| src | The accessor to create the subset from |
| offset | The offset from the start of the source accessor |
| size | The size of the subset. |
| InvalidArgument | if input randomAccess is null |
| Error | When the subset range is out of the source accessor range. |
|
inlinestatic |
Create a RandomAccess from given memory area.
The return DataAccess does not have the ownership of given buffer.
|
inlinestatic |
Create a RandomAccess that will delegate to a StreamAccess.
| InvalidArgument | if input stream is null |
|
inlinestatic |
Get an accessor from a file mapped in memory.
| filePath | The path to the file to map. |
| Error | If the file does not exist already |
|
inlinestatic |
Create a RandomAccess from given HTTP URI, opening URI in Read Only. Requested HTTP server must support HTTP range requests.
| uri | The HTTP(S) URI to get. |
| method | The HTTP request method. |
| headers | The HTTP request headers. |
|
inlinestatic |
Create a RandomAccess from given URI, opening URI in Read Only. If the URI scheme is 'file': creates a ReadRandomAccess using StreamAccessFactory::openFileRead(). If the URI scheme is 'http(s)': calls openHTTPRead(), using the GET method and no headers.