Click or drag to resize

PERAlignedEncoder Class

Inheritance Hierarchy
SystemObject
  GSF.ASN1.CodersEncoder
    GSF.ASN1.Coders.PERPERAlignedEncoder
      GSF.ASN1.Coders.PERPERUnalignedEncoder

Namespace: GSF.ASN1.Coders.PER
Assembly: GSF.ASN1 (in GSF.ASN1.dll) Version: 2.4.207-beta
Syntax
public class PERAlignedEncoder : Encoder
View Source

The PERAlignedEncoder type exposes the following members.

Constructors
 NameDescription
Public methodPERAlignedEncoderInitializes a new instance of the PERAlignedEncoder class
Top
Methods
 NameDescription
Protected methoddoAlign 
Public methodencodeT
(Overrides EncoderencodeT(T, Stream))
Public methodencodeAny
(Overrides EncoderencodeAny(Object, Stream, ElementInfo))
Public methodencodeBitString
(Overrides EncoderencodeBitString(Object, Stream, ElementInfo))
Public methodencodeBoolean
(Overrides EncoderencodeBoolean(Object, Stream, ElementInfo))
Public methodencodeBoxedType
(Inherited from Encoder)
Public methodencodeChoice Encoding of the choice structure ITU-T X.691. 22. NOTE – (Tutorial) A choice type is encoded by encoding an index specifying the chosen alternative. This is encoded as for a constrained integer (unless the extension marker is present in the choice type, in which case it is a normally small non-negative whole number) and would therefore typically occupy a fixed length bit-field of the minimum number of bits needed to encode the index. (Although it could in principle be arbitrarily large.) This is followed by the encoding of the chosen alternative, with alternatives that are extension additions encoded as if they were the value of an open type field. Where the choice has only one alternative, there is no encoding for the index.
(Overrides EncoderencodeChoice(Object, Stream, ElementInfo))
Public methodencodeChoicePreamble 
Public methodencodeClassType
(Inherited from Encoder)
Protected methodencodeConstraintLengthDeterminant Encoding constraint length determinant procedure. ITU-T X.691. 10.9. General rules for encoding a length determinant
Protected methodencodeConstraintNumber Encoding of a constrained whole number ITU-T X.691. 10.5. NOTE – (Tutorial) This subclause is referenced by other clauses, and itself references earlier clauses for the production of a nonnegative-binary-integer or a 2's-complement-binary-integer encoding.
Public methodencodeCSElement
(Inherited from Encoder)
Protected methodencodeCSEnum
(Inherited from Encoder)
Public methodencodeElement
(Inherited from Encoder)
Public methodencodeEnum
(Inherited from Encoder)
Public methodencodeEnumItem
(Overrides EncoderencodeEnumItem(Object, Type, Stream, ElementInfo))
Public methodencodeInteger
(Overrides EncoderencodeInteger(Object, Stream, ElementInfo))
Protected methodencodeIntegerValueAsBytes 
Protected methodencodeLength 
Protected methodencodeLengthDeterminant Encoding length determinant procedure. ITU-T X.691. 10.9. General rules for encoding a length determinant
Protected methodencodeNormallySmallNumber Encode normally small number ITU-T X.691. 10.6 NOTE – (Tutorial) This procedure is used when encoding a non-negative whole number that is expected to be small, but whose size is potentially unlimited due to the presence of an extension marker. An example is a choice index.
Public methodencodeNull
(Overrides EncoderencodeNull(Object, Stream, ElementInfo))
Public methodencodeObjectIdentifier
(Overrides EncoderencodeObjectIdentifier(Object, Stream, ElementInfo))
Public methodencodeOctetString
(Overrides EncoderencodeOctetString(Object, Stream, ElementInfo))
Public methodencodePreparedElement
(Inherited from Encoder)
Public methodencodeReal
(Overrides EncoderencodeReal(Object, Stream, ElementInfo))
Protected methodencodeSemiConstraintNumber Encoding of a semi-constrained whole number ITU-T X.691. 10.7. NOTE – (Tutorial) This procedure is used when a lower bound can be identified but not an upper bound. The encoding procedure places the offset from the lower bound into the minimum number of octets as a non-negative-binary-integer, and requires an explicit length encoding (typically a single octet) as specified in later procedures.
Public methodencodeSequence
(Overrides EncoderencodeSequence(Object, Stream, ElementInfo))
Public methodencodeSequenceField
(Inherited from Encoder)
Public methodencodeSequenceOf
(Overrides EncoderencodeSequenceOf(Object, Stream, ElementInfo))
Public methodencodeSequencePreamble 
Public methodencodeSet 
Public methodencodeString
(Overrides EncoderencodeString(Object, Stream, ElementInfo))
Protected methodencodeUnconstraintNumber Encoding of a unconstrained whole number ITU-T X.691. 10.8. NOTE – (Tutorial) This case only arises in the encoding of the value of an integer type with no lower bound. The procedure encodes the value as a 2's-complement-binary-integer into the minimum number of octets required to accommodate the encoding, and requires an explicit length encoding (typically a single octet) as specified in later procedures.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Protected methodgetChoiceSelectedElement
(Inherited from Encoder)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodinvokeGetterMethodForField
(Inherited from Encoder)
Public methodinvokeSelectedMethodForField
(Inherited from Encoder)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also