Package pyamf :: Package util :: Module pure
[hide private]
[frames] | no frames]

Module pure

source code

Provides the pure Python versions of BufferedByteStream.

Do not reference directly, use pyamf.util.BufferedByteStream instead.


Since: 0.6

Classes [hide private]
  StringIOProxy
I am a StringIO type object containing byte data from the AMF stream.
  DataTypeMixIn
Provides methods for reading and writing basic data types for file-like objects.
  BufferedByteStream
An extension of StringIO.
Functions [hide private]
bool
is_float_broken()
Older versions of Python (<=2.5) and the Windows platform are renowned for mixing up 'special' floats.
source code
 
read_double_workaround(self)
Reads an 8 byte float from the stream.
source code
 
write_double_workaround(self, d)
Writes an 8 byte float to the stream.
source code
 
x(self, d)
Writes an 8 byte float to the stream.
source code
Variables [hide private]
  SYSTEM_ENDIAN = '<'
  __package__ = 'pyamf.util'

Imports: struct, StringIO, python


Function Details [hide private]

is_float_broken()

source code 

Older versions of Python (<=2.5) and the Windows platform are renowned for mixing up 'special' floats. This function determines whether this is the case.

Returns: bool

Since: 0.4

write_double_workaround(self, d)

source code 

Writes an 8 byte float to the stream.

Parameters:
  • d (float) - 8 byte float
Raises:
  • TypeError - Unexpected type for float d.

x(self, d)

source code 

Writes an 8 byte float to the stream.

Parameters:
  • d (float) - 8 byte float
Raises:
  • TypeError - Unexpected type for float d.