isFbxFormatBinary function

bool isFbxFormatBinary(
  1. Uint8List buffer
)

Implementation

bool isFbxFormatBinary( Uint8List buffer ) {

	String CORRECT = 'Kaydara\u0020FBX\u0020Binary\u0020\u0020\0';
  String str = convertArrayBufferToString( buffer, 0, CORRECT.length );

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

}