NOTICE: Citizendium is still being set up on its newer server, treat as a beta for now; please see here for more.
Citizendium - a community developing a quality comprehensive compendium of knowledge, online and free. Click here to join and contribute—free
CZ thanks our previous donors. Donate here. Treasurer's Financial Report -- Thanks to our content contributors. --

Difference between revisions of "Type-Length-Value"

From Citizendium, the Citizens' Compendium
Jump to: navigation, search
m (New page: A form of encoding that generally conforms to the following format: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 ...)
(No difference)

Revision as of 16:14, 8 August 2008

A form of encoding that generally conforms to the following format:


       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |     Type      |    Length     |              ...              |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      ~                              ...                              ~
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     Type           8-bit identifier of the type of option.  The
                    value in the Type field is context dependent. 
     Length         8-bit unsigned integer.  The length of the option
                    (including the type and length fields) in units of
                    8 octets.  
                    A  Length value of 0 is often either invalid or 
                    indicates a minimum value of, for example, 64bits.  
      Value         This is a variable length field (as specified in
                    the Length field) containing context-specific 
                    values.