an in-memory stream buffer for write new file data
StreamBuffer
00 Remarks
size is limited to 2GB, use the IDisposable.Dispose() method for save the memory data to the underlying stream, and this dispose method will not close the target base stream
this model will append of the block data into the last of the physical file by default, or write to the specific location when in pre-allocation mode
01 Syntax
02 Methods
03 Properties
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| block | 1 | the file write behaviour is different at here based on the buffer information data in this file block reference object: 1. |
05 Members
create a new temp stream for write new object data
all stream data before flush into file is in-memory, so one block file its file size should be less then 2GB.
| Name | Type | Description |
|---|---|---|
buffer | Stream | - |
block | StreamBlock | the block location of current file data |
buffer_size | Int32 | - |
Int64)Byte(), Int32, Int32)Byte(), Int32, Int32)Int64, SeekOrigin)write the in-memory content data into the base file stream, and then update the stream block content data
append current file block object to the last of the file by default when flush the data to physical pack file
Boolean)write the in-memory data to local file
| Name | Type | Description |
|---|---|---|
disposing | Boolean | - |
current stream is fixed length?
the file write behaviour is different at here based on the buffer information data in this file block reference object:
- if the file block information is empty: no position and no size, then file data will be append to the stream last
- if the file block information is not empty, then file data will be write to a specific location, and then length of the stream data is fixed!