C# Class Yaml.Integer

Class for storing a Yaml Integer node uri: tag:yaml.org,2002:int
Inheritance: Scalar
Afficher le fichier Open project: rs-services/RightGridWindowsImplementation Class Usage Examples

Méthodes publiques

Méthode Description
Integer ( ParseStream stream ) : System

Parse an integer

Integer ( long val ) : System

New Integer

ToString ( ) : string

To String

Méthodes protégées

Méthode Description
Write ( WriteStream stream ) : void

Write to YAML

Private Methods

Méthode Description
OverflowTest ( ulong number, short sign ) : void

Test that the unsigned int fits in a signed int

Parse16 ( ParseStream stream, short sign ) : long

Hexadecimal string

Parse60 ( ParseStream stream, short sign ) : long

Parses a string with base 60, without sign

ParseBase ( ParseStream stream, uint basis, short sign ) : long

Parses a string with a given base (maximum 10)

This is not completly correct. For base10 the first char may not be a '_' The other bases allow this...

Method Details

Integer() public méthode

Parse an integer
public Integer ( ParseStream stream ) : System
stream ParseStream
Résultat System

Integer() public méthode

New Integer
public Integer ( long val ) : System
val long
Résultat System

ToString() public méthode

To String
public ToString ( ) : string
Résultat string

Write() protected méthode

Write to YAML
protected Write ( WriteStream stream ) : void
stream WriteStream
Résultat void