BytesDomain
class in io.proptastic
class BytesDomainByte strings, byte[]s: bytes().ofSize(atMost(64)). Each byte from 0x00, the
simplest, to 0xFF, its ends drawn often; one try in 8 an edge, empty, all zero or all 0xFF. A
counterexample shrinks toward the empty array, each byte toward 0 (decision 88). .inBase64() and .inHex() draw them as text, encoded from the bytes, so a shrink stays
canonical.
Methods
inBase64
EncodedDomain inBase64()The bytes as base64 text, as RFC 4648 writes it: the standard alphabet, padded. Each draw is the encoding of the bytes drawn, so shrinking shrinks the bytes and the text stays canonical.
inBase64
EncodedDomain inBase64(Base64.Encoder encoder)The bytes as text in the base64 your code speaks: .inBase64(Base64.getUrlEncoder().withoutPadding()).
inHex
EncodedDomain inHex()The bytes as hex text, two digits a byte, lower case or upper, lower the simplest.