posByte

posByte(b:     Byte;
        start: Integer): Integer;

The posByte method of the Binary primitive type returns an integer containing the position in the receiver of the byte specified in the b parameter.

The start parameter must be greater than zero (0) and less than or equal to the length of the receiver.

This method is preferred to the deprecated Binary primitive type pos method.