C# Class Yaml.Binary

A Yaml Boolean node tag:yaml.org,2002:binary
Inheritance: Scalar
Afficher le fichier Open project: rs-services/RightGridWindowsImplementation Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Write ( WriteStream stream ) : void

Write the base64 content to YAML

The lines are splitted in blocks of 20 bytes

Method Details

Binary() public méthode

Parse a binary node
public Binary ( ParseStream stream ) : System
stream ParseStream
Résultat System

Binary() public méthode

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

Parse() public static méthode

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
Résultat byte[]

ToString() public méthode

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

Write() protected méthode

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