isBlorb static method

bool isBlorb(
  1. List fileBytes
)

This function only needs the first 8 bytes of the file data in order to return a result.

Implementation

static bool isBlorb(List fileBytes){
  if (fileBytes.length < 12) return false;

  if (IFF.readChunk(fileBytes) != Chunk.form) return false;

  // var size = IFF.read4Byte(fileBytes);

  if (IFF.readChunk(fileBytes) != Chunk.ifrs) return false;

  return true;
}