casinotools.fileformat package

Subpackages

Submodules

casinotools.fileformat.FileReaderWriterTools module

class casinotools.fileformat.FileReaderWriterTools.FileReaderWriterTools[source]

Bases: object

addTag(file, tagID)[source]
addTagOld(file, tagID)[source]
export(exportFile)[source]
findTag(file, tagID)[source]
getSizeOfDoubleList(numberElements)[source]
getSizeOfIntList(numberElements)[source]
readBool(file)[source]
readDouble(file)[source]
readDoubleList(file, numberElements=None)[source]
readFloat(file)[source]
readFloatList(file, numberElements)[source]
readInt(file)[source]
readIntList(file, numberElements)[source]
readLong(file)[source]
readMultipleValues(file, format)[source]
readStr(file)[source]
readStrLength(file, size)[source]
writeBool(file, value)[source]
writeDouble(file, value)[source]
writeDoubleList(file, valueList, numberElements)[source]
writeFloat(file, value)[source]
writeInt(file, value)[source]
writeLine(file, line)[source]
writeLong(file, value)[source]
writeStr(file, value)[source]
writeStrLength(file, value, size)[source]

casinotools.fileformat.Tags module

casinotools.fileformat.Tags.addTag(file, tagID, tagLenght=0, filler=b'%')[source]
casinotools.fileformat.Tags.addTagOld(file, tagID, tagLenght=0, filler=b'%')[source]
casinotools.fileformat.Tags.createTagWithFiller(tagID, tagLenght, filler)[source]
casinotools.fileformat.Tags.limitedSearchTag(file, tagID, searchLength, tagLenght=0, filler=b'%')[source]
casinotools.fileformat.Tags.limitedStreamSearch(file, tag, searchLength)[source]

Search a stream for a tag with a limited length search.

Parameters:
  • file – Already opened file object.
  • tag – Text tag to search in the file.
  • searchLength – Search only this length in the file.
Rtpye:

bool

Returns:

True if the tag is found and the file is at the position after the tag.

Returns:

The file position is reset to the origin position if tag is not found.

casinotools.fileformat.Tags.searchTag(file, tagID, tagLenght=0, filler=b'%')[source]

casinotools.fileformat.test_FileReaderWriterTools module

casinotools.fileformat.test_Tags module

Module contents