private int FindBoundary() { byte[] imageDelimiter; if (_boundary.Length != 0) { imageDelimiter = (byte[])_boundary; } else { imageDelimiter = _header; } return(ByteArrayUtils.Find(_buffer, imageDelimiter, _position, RemainingBytes)); }
internal int FindImageBoundary() { return(ByteArrayUtils.Find(_buffer, (byte[])_boundary, 0, RemainingBytes)); }
private int FindHeader() { return(ByteArrayUtils.Find(_buffer, _header, _position, RemainingBytes)); }