SciFiReaders.readers.microscopy.spm.afm.mdt.MDTBufferedReaderDecorator#

class SciFiReaders.readers.microscopy.spm.afm.mdt.MDTBufferedReaderDecorator(file_)[source]#

Bases: object

A decorator class that facilitate the sequential reading of a file.

The class will redirect al the standard file methods and add some methods to read and integer and float number encoded on 8, 16, 32 or 64 bits

Methods

extract_string

read_char

Read one character coded on 1 byte (a usual char)

read_float32

Read a signed float coded on 4 byte (a float)

read_float64

Read a signed float coded on 8 byte (au double float)

read_int16

Read a signed integer coded on 2 byte (a short)

read_int32

Read a unsigned integer coded on 4 byte (a usual int or long int)

read_int64

Read a unsigned integer coded on 8 byte (a long long)

read_int8

Read a signed integer coded on 1 byte (a char)

read_uchar

Read a unsigned integer coded on 1 byte (a char) idem that read_uint8()

read_uint16

Read a unsigned integer coded on 2 byte (a short)

read_uint32

Read a unsigned integer coded on 4 byte (a usual int or long int)

read_uint64

Read a unsigned integer coded on 8 byte (a long long)

read_uint8

Read a unsigned integer coded on 1 byte (a char)

shift_position

read_char()[source]#

Read one character coded on 1 byte (a usual char)

read_float32()[source]#

Read a signed float coded on 4 byte (a float)

read_float64()[source]#

Read a signed float coded on 8 byte (au double float)

read_int16()[source]#

Read a signed integer coded on 2 byte (a short)

read_int32()[source]#

Read a unsigned integer coded on 4 byte (a usual int or long int)

read_int64()[source]#

Read a unsigned integer coded on 8 byte (a long long)

read_int8()[source]#

Read a signed integer coded on 1 byte (a char)

read_uchar()[source]#

Read a unsigned integer coded on 1 byte (a char) idem that read_uint8()

read_uint16()[source]#

Read a unsigned integer coded on 2 byte (a short)

read_uint32()[source]#

Read a unsigned integer coded on 4 byte (a usual int or long int)

read_uint64()[source]#

Read a unsigned integer coded on 8 byte (a long long)

read_uint8()[source]#

Read a unsigned integer coded on 1 byte (a char)