internal void Read ( BinaryReader reader )
{
if (reader.ReadFourCC()!="ATOM") {
throw new IOException("Bad FourCC. ATOM is expected.");
}
// count:
int count = reader.ReadInt32();
for ( short i=0; i<count; i++) {
short idA = reader.ReadInt16();
short idB = Add( reader.ReadString() );
if (idA!=idB) {
throw new IOException("Bad ATOM table.");
}
}
}
}