Sha256: a0868dc71d62bf9e1107fb237c2b7dcb78b070a798543ad7990763dbc453eac7

Contents?: true

Size: 637 Bytes

Versions: 1

Compression:

Stored size: 637 Bytes

Contents

		if (slen-- == 0) {
			break;
		}
		*o++ = base64_table_enc_6bit[*s >> 2];
		st.carry = (*s++ << 4) & 0x30;
		st.bytes++;
		olen += 1;

		// Deliberate fallthrough:
		BASE64_FALLTHROUGH

	case 1:	if (slen-- == 0) {
			break;
		}
		*o++ = base64_table_enc_6bit[st.carry | (*s >> 4)];
		st.carry = (*s++ << 2) & 0x3C;
		st.bytes++;
		olen += 1;

		// Deliberate fallthrough:
		BASE64_FALLTHROUGH

	case 2:	if (slen-- == 0) {
			break;
		}
		*o++ = base64_table_enc_6bit[st.carry | (*s >> 6)];
		*o++ = base64_table_enc_6bit[*s++ & 0x3F];
		st.bytes = 0;
		olen += 2;
	}
}
state->bytes = st.bytes;
state->carry = st.carry;
*outlen = olen;

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ob64-0.5.0 vendor/libbase64/lib/arch/generic/enc_tail.c