Exemple #1
0
        private int FindBoundary()
        {
            byte[] imageDelimiter;

            if (_boundary.Length != 0)
            {
                imageDelimiter = (byte[])_boundary;
            }
            else
            {
                imageDelimiter = _header;
            }

            return(ByteArrayUtils.Find(_buffer, imageDelimiter, _position, RemainingBytes));
        }
Exemple #2
0
 internal int FindImageBoundary()
 {
     return(ByteArrayUtils.Find(_buffer, (byte[])_boundary, 0, RemainingBytes));
 }
Exemple #3
0
 private int FindHeader()
 {
     return(ByteArrayUtils.Find(_buffer, _header, _position, RemainingBytes));
 }