Lines Matching defs:in
5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
84 /* Here is the encoding of keys. This is necessary in order to allow arbitrary
85 * characters in keys. Characters in [0-~] are not encoded. Others are encoded
88 * [0-o]. Therefore in the worst case the length of a key gets doubled. Note
92 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string());
94 for (int i = length; i > 0; --i, ++in) {
95 if (*in < '0' || *in > '~') {
103 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string());
105 for (int i = length; i > 0; --i, ++in, ++out) {
106 if (*in < '0' || *in > '~') {
107 *out = '+' + (*in >> 6);
108 *++out = '0' + (*in & 0x3F);
111 *out = *in;
316 static size_t decode_key_length(const char* in, size_t length) {
319 for (const char* end = in + length; in < end; in++) {
321 if (*in < '0' || *in > '~') {
330 static void decode_key(char* out, const char* in, size_t length) {
331 for (const char* end = in + length; in < end; in++) {
332 if (*in < '0' || *in > '~') {
334 if (in + 1 >= end) {
338 *out = (*in++ - '+') << 6;
339 *out++ |= (*in - '0') & 0x3F;
341 *out++ = *in;
450 * provide full support of the API. In any case, we'll do the fallback just for
658 int in = TEMP_FAILURE_RETRY(open(sMetaDataFile, O_RDONLY));
659 if (in < 0) {
662 size_t fileLength = readFully(in, (uint8_t*)&mMetaData, sizeof(mMetaData));
666 close(in);
703 // Initialize again in case we had a key.