isFbxFormatBinary function

bool isFbxFormatBinary(
  1. Uint8List buffer
)

Implementation

bool isFbxFormatBinary(Uint8List buffer) {
  String correct = 'Kaydara\u0020FBX\u0020Binary\u0020\u00200';
  String str = convertArrayBufferToString(buffer, 0, correct.length);

  return buffer.lengthInBytes >= correct.length && "Kaydara FBX Binary" == str.substring(0, 18).trim();
}