read_snapshot_size#

pytwin.read_snapshot_size(filepath)#

Return the number of data stored in a snapshot binary file.

Parameters:
filepathstr

Path of the binary file to be written.

Returns:
int

Number of data stored in the binary file.

Examples

>>> from pytwin import write_binary
>>> number_data = read_snapshot_size('snapshot.bin')