The TeaFile<(Of <(<'T>)>)> type exposes the following members.
Methods
Name | Description | |
---|---|---|
Append |
Opens the file in write mode and allows appending items to it. The filepointer is set to the end of the file.
|
|
Close |
Closes this file.
|
|
Create(Stream, String, NameValueCollection, Boolean) |
Creates a TeaFile, using the specified stream as the underlying storage media.
|
|
Create(String, String, NameValueCollection, Boolean) |
Create a new TeaFile for type T.
|
|
Dispose |
Releases all resources acquired by the instance.
|
|
Flush |
Flushes the file.
|
|
OpenMemoryMapping |
Opens a memory mapping of the file using managed memory mapping.
|
|
OpenRawMemoryMapping |
Opens a memory mapping of the file using unsafe memory mapping.
|
|
OpenRead(Stream, ItemDescriptionElements) |
Opens a TeaFile for read.
|
|
OpenRead(String, ItemDescriptionElements) |
Opens a TeaFile in read only mode.
|
|
OpenWrite(Stream, ItemDescriptionElements) |
Opens a TeFile in write mode.
|
|
OpenWrite(String, ItemDescriptionElements) |
Opens a TeFile in write mode.
|
|
Read |
Reads the next item from the file
|
|
SetFilePointerToEnd |
Sets the file pointer to the physical end of the file.
|
|
SetFilePointerToItem |
Set file pointer based on item index.
|
|
ToString | (Overrides Object..::..ToString()()()().) | |
Truncate |
Removes all items from the file.
|
|
Write(IEnumerable<(Of <<'(T>)>>)) |
Writes several items in to the file.
|
|
Write(T) |
Writes an item in to the file at the position of the file pointer.
|
Properties
Name | Description | |
---|---|---|
Count |
Gets the number of items in the file.
|
|
Description |
The description of the file's content. The returned Description instance in turn holds descriptions
of the items in the file, a NameValueCollection with arbitrary values and a simple ContentDescription string.
TeaFiles may or may not hold any description of their content. If not any description is available, this property will be null.
|
|
ItemAreaEnd |
Gets the item area end.
|
|
ItemAreaSize |
Gets the size of the item area in bytes.
|
|
ItemAreaStart |
Gets the item area start.
|
|
Items |
Provides access to the items in the file.
|
|
Name |
The name of the file.
|