
Sample program output showing variants of the ossPrintPER output :
The input to the encoder
The encoder's trace messages
The default ossPrintPER output
The ossPrintPER output when the application hook is provided
The customized ossPrintPER output
The input to the encoder:
value BBCard ::=
{
name "Casey",
team "Mudville Nine",
age 32,
position "left field",
handedness ambidextrous,
batting-average { 2.500, 10, -1 }
}
<top>
The encoder's trace messages:
BBCard SEQUENCE [fieldcount (not encoded) = 6]
name IA5String [length = 5.0]

"Casey"
team IA5String [length = 13.0]

"Mudville Nine"
age INTEGER [length (not encoded) = 0.7]

32
position IA5String [length = 10.0]

"left field"
handedness ENUMERATED [length (not encoded) = 0.2]

2
batting-average REAL [length = 3.0]

1 * 2^-2
Total PDV length = 37.0
Card encoded
<top>
The default ossPrintPER output :
value BBCard ::=
{
name "Casey",

--length: <.000100>

--padding: <00>

--contents: <.01000011 .01100001 .01110011 .01100101 .01111001>
team "Mudville Nine",

--length: <.001100>

--padding: <00>

--contents: <.01001101 .01110101 .01100100 .01110110 .01101001 .01101100 >

-- <.01101100 .01100101 .00100000 .01001110 .01101001 .01101110 >

-- <.01100101>
age 32,

--contents: <.0011111>
position "left field",

--length: <0.01001>

--padding: <000>

--contents: <.01101100 .01100101 .01100110 .01110100 .00100000 .01100110 >

-- <.01101001 .01100101 .01101100 .01100100>
handedness ambidextrous,

--contents: <.10>
batting-average { 2.500, 10, -1 }

--padding: <000000>

--length: <.00000011>

--type of real number encoding: <.10000000>

--exponent: <.11111110>

--mantissa: <.00000001>
}
<top>
The ossPrintPER output when the application hook is provided:
Decoding of PDU "BBCard" started
Decoding of type "name" started
(Decoded value is: "Casey")
Decoded item:
TypeId: length
Length of encoding: 6 (counted in bits)
Content of encoding: 000100
Decoded item:
TypeId: padding
Length of encoding: 2 (counted in bits)
Content of encoding: 00
Decoded item:
TypeId: contents
Length of encoding: 40 (counted in bits)
Content of encoding: 0100001101100001011100110110010101111001
Decoding of type "name" finished
Decoding of type "team" started
(Decoded value is: "Mudville Nine")
Decoded item:
TypeId: length
Length of encoding: 6 (counted in bits)
Content of encoding: 001100
Decoded item:
TypeId: padding
Length of encoding: 2 (counted in bits)
Content of encoding: 00
Decoded item:
TypeId: contents
Length of encoding: 104 (counted in bits)
Content of encoding: 01001101011101010110010001110110011010010110110001101100011001...
Decoding of type "team" finished
Decoding of type "age" started
(Decoded value is: 32)
Decoded item:
TypeId: contents
Length of encoding: 7 (counted in bits)
Content of encoding: 0011111
Decoding of type "age" finished
Decoding of type "position" started
(Decoded value is: "left field")
Decoded item:
TypeId: length
Length of encoding: 6 (counted in bits)
Content of encoding: 001001
Decoded item:
TypeId: padding
Length of encoding: 3 (counted in bits)
Content of encoding: 000
Decoded item:
TypeId: contents
Length of encoding: 80 (counted in bits)
Content of encoding: 01101100011001010110011001110100001000000110011001101001011001...
Decoding of type "position" finished
Decoding of type "handedness" started
(Decoded value is: ambidextrous)
Decoded item:
TypeId: contents
Length of encoding: 2 (counted in bits)
Content of encoding: 10
Decoding of type "handedness" finished
Decoding of type "batting-average" started
(Decoded value is: { 2.500, 10, -1 })
Decoded item:
TypeId: padding
Length of encoding: 6 (counted in bits)
Content of encoding: 000000
Decoded item:
TypeId: length
Length of encoding: 8 (counted in bits)
Content of encoding: 00000011
Decoded item:
TypeId: type of real number encoding
Length of encoding: 8 (counted in bits)
Content of encoding: 10000000
Decoded item:
TypeId: exponent
Length of encoding: 8 (counted in bits)
Content of encoding: 11111110
Decoded item:
TypeId: mantissa
Length of encoding: 8 (counted in bits)
Content of encoding: 00000001
Decoding of type "batting-average" finished
Decoding of PDU "BBCard" finished
<top>
The customized ossPrintPER output:
value BBCard ::=
{
--TYPE INFORMATION: SEQUENCE
--OFFSET: 0,0
name "Casey",

--TYPE INFORMATION: IA5String (SIZE(1..60))

--FULL NAME: name

--OFFSET: 0,0; LENGTH: 6,0

--length: <.000100> (decoded as 5)

--padding: <00>

--contents: .43.61.73.65.79
team "Mudville Nine",

--TYPE INFORMATION: IA5String (SIZE(1..60))

--FULL NAME: team

--OFFSET: 6,0; LENGTH: 14,0

--length: <.001100> (decoded as 13)

--padding: <00>

--contents: .4D.75.64.76.69.6C.6C.65.20.4E.69.6E.65
age 32,

--TYPE INFORMATION: INTEGER (1..100)

--FULL NAME: age

--OFFSET: 20,0; LENGTH: 0,7

--contents: <.0011111>
position "left field",

--TYPE INFORMATION: IA5String (SIZE(1..60))

--FULL NAME: position

--OFFSET: 20,7; LENGTH: 11,1

--length: <0.01001> (decoded as 10)

--padding: <000>

--contents: .6C.65.66.74.20.66.69.65.6C.64
handedness ambidextrous,

--TYPE INFORMATION: ENUMERATED {left-handed,right-handed,ambidextrous}

--FULL NAME: handedness

--OFFSET: 32,0; LENGTH: 0,2

--contents: <.10>
batting-average { 2.500, 10, -1 }

--TYPE INFORMATION: REAL

--FULL NAME: batting-average

--OFFSET: 32,2; LENGTH: 4,6

--padding: <000000>

--length: .03 (decoded as 3)

--type of real number encoding: .80

--exponent: .FE

--mantissa: .01
}
--TOTAL LENGTH: 37,0
.:. Top
Copyright © 2008 OSS Nokalva, Inc. All Rights Reserved.