just recommended apply this object for fast binary data read
MemoryStreamPool
00 Remarks
01 Syntax
Microsoft.VisualBasic.ApplicationServices.MemoryStreamPool
02 Methods
03 Properties
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| buffer_size | 1 | size of each stream object in pool |
| block | 1 | the block index of MemoryStreamPool.pool. |
05 Members
FromFile(
String, Int32)Parameters
| Name | Type | Description |
|---|---|---|
path | String | - |
buffer_size | Int32 | default buffer size is 1GB |
Length
the total size in bytes of the stream pool
buffer_size
size of each stream object in pool
Remarks
20221101 data type should be int64, or math overflow maybe happends if the offset value is greater than 2GB.
block
the block index of MemoryStreamPool.pool.
CanRead
CanSeek
CanWrite
Position
ToString()
Flush()
SetLength(
Int64)Seek(
Int64, SeekOrigin)