The OTAcast source
Close the source.
Configure the source with the given parameters. This is useful for reusing an existing source. Note that the reconfiguration always implies a reset, so the source will be in a clean state after this operation.
- param width
- The width of the encoding, i.e., now many symbols are combined for each encoded symbol.
- param symbol_bytes
- The size of a symbol in bytes.
Return The file hash of the source.
Return The file name of the source.
Return The file path of the source.
Return The file size of the source.
Return The hash of the source.
Check if the source is open. This function will return true if the source is open.
Return True if the source is open, false otherwise.
Serialize meta data from the source into the given bytearray.
Return the size of the meta packet.
Open the source. This will open the source and prepare it for reading. This function must be called before reading from the source.
- param file_path
- The path to the file to open.
Return The size of a packet.
Return the statistics of the source.
Return A dictionary with the statistics.
Return The number of bytes in a symbol.
Return The number of symbols.
Return The width of the encoding.
Write a packet.