C# Class Yaml.Binary

A Yaml Boolean node tag:yaml.org,2002:binary
Inheritance: Scalar
显示文件 Open project: rs-services/RightGridWindowsImplementation Class Usage Examples

Public Methods

Method Description
Binary ( ParseStream stream ) : System

Parse a binary node

Binary ( byte val ) : System

Binary constructor from byte array

This constructor only sets the reference, no new memory is allocated

Parse ( ParseStream stream ) : byte[]

Parses a binairy node.

This is not an efficient method. First the stream is placed in a string. And after that the string is converted in a byte[]. If there is a fault in the binairy string then that will only be detected after reading the whole stream and after coneverting.

ToString ( ) : string

To String

The hexadecimal notation, 20 bytes for each line

Protected Methods

Method Description
Write ( WriteStream stream ) : void

Write the base64 content to YAML

The lines are splitted in blocks of 20 bytes

Method Details

Binary() public method

Parse a binary node
public Binary ( ParseStream stream ) : System
stream ParseStream
return System

Binary() public method

Binary constructor from byte array
This constructor only sets the reference, no new memory is allocated
public Binary ( byte val ) : System
val byte
return System

Parse() public static method

Parses a binairy node.
This is not an efficient method. First the stream is placed in a string. And after that the string is converted in a byte[]. If there is a fault in the binairy string then that will only be detected after reading the whole stream and after coneverting.
public static Parse ( ParseStream stream ) : byte[]
stream ParseStream
return byte[]

ToString() public method

To String
The hexadecimal notation, 20 bytes for each line
public ToString ( ) : string
return string

Write() protected method

Write the base64 content to YAML
The lines are splitted in blocks of 20 bytes
protected Write ( WriteStream stream ) : void
stream WriteStream
return void