lib/parsers/jpeg_parser.rb
# Read a byte, if it is 0xFF then skip bytes as long as they are also 0xFF (byte stuffing)
# and return the first byte scanned that is not 0xFF
Read a byte, if it is 0xFF then skip bytes as long as they are also 0xFF (byte stuffing)
and return the first byte scanned that is not 0xFF
Read a byte if it is 0xFF then skip bytes as long as they are also 0xFF ( byte stuffing ) and return the first byte scanned that is not 0xFF
def read_next_marker
    c = read_char while c != 0xFF
    c = read_char while c == 0xFF
    c
  end
def read_next_marker c = read_char while c != 0xFF c = read_char while c == 0xFF c end
Read a byte, if it is 0xFF then skip bytes as long as they are also 0xFF (byte stuffing)
and return the first byte scanned that is not 0xFF
Read a byte if it is 0xFF then skip bytes as long as they are also 0xFF ( byte stuffing ) and return the first byte scanned that is not 0xFF