Documentation / loaders / detectCurveFormat
Function: detectCurveFormat()
detectCurveFormat(
buffer):CurveSourceFormat
Defined in: libs/loaders/src/curves/zhair_convert.ts:77
Detects which curve container a buffer holds.
Parameters
buffer
ArrayBuffer
Bytes to inspect.
Returns
The container, or null when it is neither.
Remarks
By content rather than by extension: both formats have a signature at offset zero, and a mislabelled file is more useful diagnosed than mis-parsed.