code: private int[] readFlags(ByteBuffer buf) throws IOException
      {
          ISMatTag tag = new ISMatTag(buf);
          
          int[] flags = tag.readToIntArray();
          
          return flags;
      }
docs: Reads Matrix flags.
  
  Modifies <code>buf</code> position.
  
  @param buf <code>ByteBuffer</code>
  @return flags int array
  @throws IOException if reading from buffer fails