BIN

Synopsis

HELP:   Binary-detector hints: base-encoding preference and bitmask
TYPE:   OBJECT
SYNTAX: BIN(BASEPREF=AUTO/BASE16/BASE32/BASE64,BASE=num/ALL/NONE/HEX/BASE32/BASE64)

Description

The BIN sub-object inside DETECT(HINTS(...)) carries binary-detector filters that restrict the type detector at bit-setting time. All hints are optional; omitting them keeps the detector at its default (every plausible base-encoding bit set).

Base-encoding preference (single-pick)

BASEPREF narrows the base-encoding bits to a single preference. This is the typdet selector form -- exactly one base is allowed.

Use BASEPREF when the column is known to be hexadecimal even though its alphabet is also a syntactic subset of BASE64:

detect(hints(bin(basepref=BASE16)))

Base-encoding mask (multi-pick)

BASE is the bitmask form: combine several encodings.

detect(hints(bin(base=HEX))) -- HEX only detect(hints(bin(base=BASE32+BASE64))) -- both Base32 and Base64 detect(hints(bin(base=NONE))) -- treat binary zones as raw bytes

BASEPREF and BASE may both be set; BASEPREF biases the picker (single preferred base) while BASE filters which base bits the detector may set in the first place.

Arguments