core.bytes-to-base64url-groups
- description
- The base64url (no padding) of count groups of 3 bytes from index. Splits the range in half so that the recursion stays shallow for long byte lists
- type
Fn(bytes: List<Number>, index: Number, count: Number) -> String
- expression
fn(bytes$0, index$1, count$2) => match @core.less-than(left: $2, right: 2) { true => match @core.less-than(left: $2, right: 1) { true => "", false => @core.bytes-to-base64url-group(bytes: $0, index: $1) }, false => let half$3 = @core.divide(left: $2, right: 2); @core.string-concat( left: @core.bytes-to-base64url-groups(bytes: $0, index: $1, count: $3), right: @core.bytes-to-base64url-groups( bytes: $0, index: @core.plus(left: $1, right: @core.multiply(left: $3, right: 3)), count: @core.minus(left: $2, right: $3) ) ) }
- visibility
- public
core.bytes-to-base64url-groups (project definy, branch quote-encoded-parts, snapshot LbKb9vIRs5vdtsu6TiOqZ_NMUZJ6k1s6WlbZOc6x3-I) id: NapMfmf5AJpD2z7ZwTbMHfmecZNdaG6jwXptxD2Z36U content hash: Hv9A_yxv2veN5QoGB89O4kTF4JYYB2KOl_Ict1u3j2I