assertFitFileByteLength
FitFileViewer - API Documentation v30.0.1
FitFileViewer - API Documentation / main/ipc/fileReadPayload / assertFitFileByteLength
Function: assertFitFileByteLength()
assertFitFileByteLength(
byteLength:number):void
Defined in: main/ipc/fileReadPayload.ts:11
Asserts that a FIT file byte length is finite, non-negative, and below the main-process file read cap.
Parametersβ
byteLengthβ
number
Returnsβ
void
Throwsβ
TypeError when the byte length is not finite or is negative.
Throwsβ
Error when the byte length exceeds the FIT file cap.