int
|
decodeUint8(byteIter)
Decodes an 8-bit unsigned integer from the byte pointed to by
byteIter.next() |
|
|
int
|
decodeUintvar(byteIter)
Decodes the variable-length unsigned integer starting at the byte
pointed to by byteIter.next() |
|
|
int
|
decodeShortInteger(byteIter)
Decodes the short-integer value starting at the byte pointed to by
byteIter.next() . |
|
|
int
|
|
int
|
decodeLongInteger(byteIter)
Decodes the long integer value starting at the byte pointed to by
byteIter.next() . |
|
|
str
|
decodeTextString(byteIter)
Decodes the null-terminated, binary-encoded string value starting
at the byte pointed to by dataIter.next() . |
|
|
str
|
decodeQuotedString(byteIter)
From [5], section 8.4.2.1: Quoted-string = <Octet 34> *TEXT
End-of-string The TEXT encodes an RFC2616 Quoted-string with the
enclosing quotation-marks <"> removed |
|
|
str or int
|
decodeTokenText(byteIter)
From [5], section 8.4.2.1: Token-text = Token End-of-string |
|
|
str
|
decodeExtensionMedia(byteIter)
From [5], section 8.4.2.1: Extension-media = *TEXT End-of-string
This encoding is used for media values, which have no well-known
binary encoding |
|
|
str or int
|
decodeConstrainedEncoding(byteIter)
Constrained-encoding = Extension-Media --or-- Short-integer This
encoding is used for token values, which have no well-known binary
encoding, or when the assigned number of the well-known encoding is
small enough to fit into Short-integer. |
|
|
int
|
decodeShortLength(byteIter)
From [5], section 8.4.2.2: Short-length = <Any octet
0-30> |
|
|
int
|
decodeValueLength(byteIter)
Decodes the value length indicator starting at the byte pointed to
by byteIter.next() . |
|
|
int
|
decodeIntegerValue(byteIter)
From [5], section 8.4.2.3: Integer-Value = Short-integer |
Long-integer |
|
|
tuple
|
|
str
|
decodeWellKnownMedia(byteIter)
From [5], section 8.4.2.7: Well-known-media = Integer-value It is
encoded using values from the "Content Type Assignments"
table (see [5], table 40). |
|
|
str
|
decodeMediaType(byteIter)
From [5], section 8.2.4.24: Media-type = (Well-known-media |
Extension-Media) *(Parameter) |
|
|
str
|
decodeConstrainedMedia(byteIter)
From [5], section 8.4.2.7: Constrained-media =
Constrained-encoding It is encoded using values from the
"Content Type Assignments" table. |
|
|
tuple
|
|
tuple
|
decodeParameter(byteIter)
From [5], section 8.4.2.4: Parameter = Typed-parameter |
Untyped-parameter |
|
|
tuple
|
decodeTypedParameter(byteIter)
From [5], section 8.4.2.4: Typed-parameter =
Well-known-parameter-token Typed-value The actual expected
type of the value is implied by the well-known parameter. |
|
|
tuple
|
decodeUntypedParameter(byteIter)
From [5], section 8.4.2.4: Untyped-parameter = Token-text
Untyped-value The type of the value is unknown, but it shall
be encoded as an integer, if that is possible. |
|
|
int or str
|
decodeUntypedValue(byteIter)
From [5], section 8.4.2.4: Untyped-value = Integer-value |
Text-value |
|
|
tuple
|
decodeWellKnownParameter(byteIter,
encodingVersion=' 1.2 ' )
Decodes the name and expected value type of a parameter of (for
example) a "Content-Type" header entry, taking into account
the WSP short form (assigned numbers) of well-known parameter names,
as specified in section 8.4.2.4 and table 38 of [5]. |
|
|
str
|
decodeTypedValue(byteIter)
From [5], section 8.4.2.4: Typed-value = Compact-value |
Text-value In addition to the expected type, there may be no
value. |
|
|
str or int
|
decodeCompactValue(byteIter)
From [5], section 8.4.2.4: Compact-value = Integer-value |
Date-value | Delta-seconds-value | Q-value | Version-value |
Uri-value |
|
|
str
|
decodeDateValue(byteIter)
From [5], section 8.4.2.3: Date-value = Long-integer The encoding
of dates shall be done in number of seconds from 1970-01-01, 00:00:00
GMT. |
|
|
int
|
|
float
|
decodeQValue(byteIter)
From [5], section 8.4.2.1: The encoding is the same as in
Uintvar-integer, but with restricted size. |
|
|
str
|
|
|
decodeUriValue(byteIter)
Stub for Uri-value decoding; this is a wrapper to
decodeTextString |
|
|
str
|
|
int
|
decodeNoValue(byteIter)
Basically verifies that the byte pointed to by
byteIter.next() is 0x00. |
|
|
str
|
decodeAcceptValue(byteIter)
From [5], section 8.4.2.7: Accept-value = Constrained-media |
Accept-general-form Accept-general-form = Value-length Media-range
[Accept-parameters] Media-range = (Well-known-media |
Extension-Media) *(Parameter) Accept-parameters = Q-token Q-value
*(Accept-extension) Accept-extension = Parameter Q-token = <Octet
128> |
|
|
tuple
|
decodePragmaValue(byteIter)
Defined in [5], section 8.4.2.38: Pragma-value = No-cache |
(Value-length Parameter) |
|
|
|
decodeWellKnownCharset(byteIter)
From [5], section 8.4.2.8: Well-known-charset = Any-charset
| Integer-value It is encoded using values from
"Character Set Assignments" table. |
|
|
tuple
|
decodeWellKnownHeader(byteIter)
From [5], section 8.4.2.6: Well-known-header =
Well-known-field-name Wap-value Well-known-field-name =
Short-integer Wap-value = <many different headers
value, most not implemented> |
|
|
tuple
|
decodeApplicationHeader(byteIter)
From [5], section 8.4.2.6: Application-header = Token-text
Application-specific-value |
|
|
tuple
|
|