C# Class Yaml.Integer

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

Public Methods

Method Description
Integer ( ParseStream stream ) : System

Parse an integer

Integer ( long val ) : System

New Integer

ToString ( ) : string

To String

Protected Methods

Method Description
Write ( WriteStream stream ) : void

Write to YAML

Private Methods

Method 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 method

Parse an integer
public Integer ( ParseStream stream ) : System
stream ParseStream
return System

Integer() public method

New Integer
public Integer ( long val ) : System
val long
return System

ToString() public method

To String
public ToString ( ) : string
return string

Write() protected method

Write to YAML
protected Write ( WriteStream stream ) : void
stream WriteStream
return void