Свойство | Тип | Описание | |
---|---|---|---|
NodeData | Object | ||
NodeType |
Метод | Описание | |
---|---|---|
CleanTree ( ) : void |
Removes any array nodes without any value-type children
|
|
ContainsKey ( string key ) : bool |
Checks whether the given key exists within an array-type node
|
|
GetNodeAt ( string args, bool create = true, int index ) : |
Gets the node at the given address. May be used to build structure.
|
|
LoadFromBinary ( |
Loads a FileNode from stream.
|
|
LoadFromText ( |
Loads a FileNode from stream.
|
|
MakeArray ( ) : void | ||
ReadBin_SeekTo ( |
||
RemoveSubnode ( string key ) : bool |
Removes the subnode with the given key. Can only be called on array nodes.
|
|
SaveAsBinary ( |
Writes this FileNode and childs to a stream
|
|
SaveAsText ( |
Writes this FileNode to a stream
|
|
VdfFileNode ( ) : System |
Creates a new array-type node
|
|
VdfFileNode ( int value ) : System |
Creates a new integer-type node
|
|
VdfFileNode ( string value ) : System |
Creates a new string-type node
|
|
VdfFileNode ( ulong value ) : System |
Creates a new UInt64-type node
|
|
this ( string key ) : |
Gets or sets the subnode with the given key. Can only be used with an array node. If the subnode does not exist, creates it as an array type.
|
Метод | Описание | |
---|---|---|
IsEmpty ( ) : bool |
Checks whether or not this node has any children
|
Метод | Описание | |
---|---|---|
ReadBin_GetStringToken ( |
Reads from the specified stream until it reaches a string terminator (double quote with no escaping slash). The opening double quote should already be read, and the last one will be discarded.
|
|
ReadText_GetStringToken ( |
Reads a from the specified stream until it reaches a string terminator (double quote with no escaping slash). The opening double quote should already be read, and the last one will be discarded.
|
|
ReadText_SkipWhitespace ( |
Advances a stream until the next character is not whitespace
|
|
WriteBin_WriteArrayKey ( |
Writes a array key to a stream, adding start/end bytes.
|
|
WriteBin_WriteEndByte ( |
Write an end byte to stream
|
|
WriteBin_WriteIntegerValue ( |
||
WriteBin_WriteStringValue ( |
Writes a pair o key and value to a stream, adding star/end and separator bytes
|
|
WriteText_WriteFormattedString ( |
Writes a string to a stream, adding start/end quotes and escaping any quotes within the string.
|
|
WriteText_WriteWhitespace ( |
Writes the given number of tab characters to a stream
|
public ContainsKey ( string key ) : bool | ||
key | string | The key to look for |
Результат | bool |
public GetNodeAt ( string args, bool create = true, int index ) : |
||
args | string | An ordered list of keys, like a path |
create | bool | If true, will create any nodes it does not find along the path. |
index | int | Start index of the arg array |
Результат |
public static LoadFromBinary ( |
||
stream | Stream to load from | |
streamLength | long | |
Результат |
public static LoadFromText ( |
||
stream | Stream to load from | |
useFirstAsRoot | bool | |
Результат |
public static ReadBin_SeekTo ( |
||
stream | ||
str | byte | |
fileLength | long | |
Результат | void |
public RemoveSubnode ( string key ) : bool | ||
key | string | Key of the subnode to remove |
Результат | bool |
public SaveAsBinary ( |
||
stream | Stream to write to | |
actualKey | string | Name of node to write. |
Результат | void |
public SaveAsText ( |
||
stream | Stream to write to | |
indent | int | Indentation level of each line. |
Результат | void |
public VdfFileNode ( int value ) : System | ||
value | int | Value of the integer |
Результат | System |
public VdfFileNode ( string value ) : System | ||
value | string | Value of the string |
Результат | System |
public VdfFileNode ( ulong value ) : System | ||
value | ulong | Value of the unsigned 64-bit integer |
Результат | System |
public this ( string key ) : |
||
key | string | Key to look for or set |
Результат |