matchMagicOffset method

bool matchMagicOffset(
  1. String magic,
  2. int offset
)

Implementation

bool matchMagicOffset(String magic, int offset) {
  bool match = false;
  if (offset < maxlen) {
    final savedOffset = this.offset;
    this.offset = offset;
    match = matchMagic(magic);
    this.offset = savedOffset;
  }
  return match;
}