C# Class BerLib.BerEncoding

Mostra file Open project: Lawo/ember-plus Class Usage Examples

Public Properties

Property Type Description
IndefiniteLengthTerminator byte[]

Private Properties

Property Type Description
DecodeLong long
DoubleToInt64Bits long
EncodeObjectSubidentifier int
GetLongLength int
GetObjectSubidentifierLength int
Int64BitsToDouble double
ReadString byte[]

Public Methods

Method Description
DecodeAsciiString ( IBerInput input, int length ) : string
DecodeBoolean ( IBerInput input ) : bool
DecodeByteArray ( IBerInput input, int length ) : byte[]
DecodeGeneralizedTime ( IBerInput input, int length ) : System.DateTime
DecodeInteger ( IBerInput input, int length ) : int
DecodeLength ( IBerInput input ) : int
DecodeLong ( IBerInput input, int length ) : long
DecodeMultiByteInteger ( IBerInput input ) : uint
DecodeMultiByteInteger ( IBerInput input, int &consumedByteCount ) : uint
DecodeMultiByteLong ( IBerInput input ) : ulong
DecodeObjectIdentifier ( IBerInput input, int length ) : int[]
DecodeReal ( IBerInput input, int length ) : double
DecodeRelativeOid ( IBerInput input, int length ) : int[]
DecodeTag ( IBerInput input ) : BerTag
DecodeUtf8String ( IBerInput input, int length ) : string
EncodeAsciiString ( IBerOutput output, string value ) : int
EncodeBoolean ( IBerOutput output, bool value ) : int
EncodeByteArray ( IBerOutput output, byte value ) : int
EncodeGeneralizedTime ( IBerOutput output, System.DateTime value ) : int
EncodeInteger ( IBerOutput output, int value, int length ) : int
EncodeLength ( IBerOutput output, int value ) : int
EncodeLong ( IBerOutput output, long value, int length ) : int
EncodeMultiByteInteger ( IBerOutput output, uint value ) : int
EncodeMultiByteLong ( IBerOutput output, ulong value ) : int
EncodeObjectIdentifier ( IBerOutput output, int values ) : int
EncodeReal ( IBerOutput output, double value ) : int
EncodeRelativeOid ( IBerOutput output, int value ) : int
EncodeTag ( IBerOutput output, BerTag tag ) : int
EncodeUtf8String ( IBerOutput output, string value ) : int
GetAsciiStringLength ( string str ) : int
GetHeaderLength ( BerTag tag, int length ) : int
GetIntegerLength ( int value ) : int
GetLongLength ( long value ) : int
GetMultiByteIntegerLength ( uint value ) : int
GetMultiByteLongLength ( ulong value ) : int
GetObjectIdentifierLength ( int value ) : int
GetRelativeOidLength ( int value ) : int
GetTagLength ( BerTag tag ) : int
GetUtf8StringLength ( string str ) : int

Private Methods

Method Description
DecodeLong ( IBerInput input, int length, bool isSigned ) : long
DoubleToInt64Bits ( double value ) : long
EncodeObjectSubidentifier ( IBerOutput output, int value, List bytes ) : int
GetLongLength ( long value, bool isSigned ) : int
GetObjectSubidentifierLength ( int value ) : int
Int64BitsToDouble ( long value ) : double
ReadString ( IBerInput input, int &length ) : byte[]

Method Details

DecodeAsciiString() public static method

public static DecodeAsciiString ( IBerInput input, int length ) : string
input IBerInput
length int
return string

DecodeBoolean() public static method

public static DecodeBoolean ( IBerInput input ) : bool
input IBerInput
return bool

DecodeByteArray() public static method

public static DecodeByteArray ( IBerInput input, int length ) : byte[]
input IBerInput
length int
return byte[]

DecodeGeneralizedTime() public static method

public static DecodeGeneralizedTime ( IBerInput input, int length ) : System.DateTime
input IBerInput
length int
return System.DateTime

DecodeInteger() public static method

public static DecodeInteger ( IBerInput input, int length ) : int
input IBerInput
length int
return int

DecodeLength() public static method

public static DecodeLength ( IBerInput input ) : int
input IBerInput
return int

DecodeLong() public static method

public static DecodeLong ( IBerInput input, int length ) : long
input IBerInput
length int
return long

DecodeMultiByteInteger() public static method

public static DecodeMultiByteInteger ( IBerInput input ) : uint
input IBerInput
return uint

DecodeMultiByteInteger() public static method

public static DecodeMultiByteInteger ( IBerInput input, int &consumedByteCount ) : uint
input IBerInput
consumedByteCount int
return uint

DecodeMultiByteLong() public static method

public static DecodeMultiByteLong ( IBerInput input ) : ulong
input IBerInput
return ulong

DecodeObjectIdentifier() public static method

public static DecodeObjectIdentifier ( IBerInput input, int length ) : int[]
input IBerInput
length int
return int[]

DecodeReal() public static method

public static DecodeReal ( IBerInput input, int length ) : double
input IBerInput
length int
return double

DecodeRelativeOid() public static method

public static DecodeRelativeOid ( IBerInput input, int length ) : int[]
input IBerInput
length int
return int[]

DecodeTag() public static method

public static DecodeTag ( IBerInput input ) : BerTag
input IBerInput
return BerTag

DecodeUtf8String() public static method

public static DecodeUtf8String ( IBerInput input, int length ) : string
input IBerInput
length int
return string

EncodeAsciiString() public static method

public static EncodeAsciiString ( IBerOutput output, string value ) : int
output IBerOutput
value string
return int

EncodeBoolean() public static method

public static EncodeBoolean ( IBerOutput output, bool value ) : int
output IBerOutput
value bool
return int

EncodeByteArray() public static method

public static EncodeByteArray ( IBerOutput output, byte value ) : int
output IBerOutput
value byte
return int

EncodeGeneralizedTime() public static method

public static EncodeGeneralizedTime ( IBerOutput output, System.DateTime value ) : int
output IBerOutput
value System.DateTime
return int

EncodeInteger() public static method

public static EncodeInteger ( IBerOutput output, int value, int length ) : int
output IBerOutput
value int
length int
return int

EncodeLength() public static method

public static EncodeLength ( IBerOutput output, int value ) : int
output IBerOutput
value int
return int

EncodeLong() public static method

public static EncodeLong ( IBerOutput output, long value, int length ) : int
output IBerOutput
value long
length int
return int

EncodeMultiByteInteger() public static method

public static EncodeMultiByteInteger ( IBerOutput output, uint value ) : int
output IBerOutput
value uint
return int

EncodeMultiByteLong() public static method

public static EncodeMultiByteLong ( IBerOutput output, ulong value ) : int
output IBerOutput
value ulong
return int

EncodeObjectIdentifier() public static method

public static EncodeObjectIdentifier ( IBerOutput output, int values ) : int
output IBerOutput
values int
return int

EncodeReal() public static method

public static EncodeReal ( IBerOutput output, double value ) : int
output IBerOutput
value double
return int

EncodeRelativeOid() public static method

public static EncodeRelativeOid ( IBerOutput output, int value ) : int
output IBerOutput
value int
return int

EncodeTag() public static method

public static EncodeTag ( IBerOutput output, BerTag tag ) : int
output IBerOutput
tag BerTag
return int

EncodeUtf8String() public static method

public static EncodeUtf8String ( IBerOutput output, string value ) : int
output IBerOutput
value string
return int

GetAsciiStringLength() public static method

public static GetAsciiStringLength ( string str ) : int
str string
return int

GetHeaderLength() public static method

public static GetHeaderLength ( BerTag tag, int length ) : int
tag BerTag
length int
return int

GetIntegerLength() public static method

public static GetIntegerLength ( int value ) : int
value int
return int

GetLongLength() public static method

public static GetLongLength ( long value ) : int
value long
return int

GetMultiByteIntegerLength() public static method

public static GetMultiByteIntegerLength ( uint value ) : int
value uint
return int

GetMultiByteLongLength() public static method

public static GetMultiByteLongLength ( ulong value ) : int
value ulong
return int

GetObjectIdentifierLength() public static method

public static GetObjectIdentifierLength ( int value ) : int
value int
return int

GetRelativeOidLength() public static method

public static GetRelativeOidLength ( int value ) : int
value int
return int

GetTagLength() public static method

public static GetTagLength ( BerTag tag ) : int
tag BerTag
return int

GetUtf8StringLength() public static method

public static GetUtf8StringLength ( string str ) : int
str string
return int

Property Details

IndefiniteLengthTerminator public_oe static_oe property

public static byte[] IndefiniteLengthTerminator
return byte[]