ObjFW  Diff

Differences From Artifact [469ffb49bd]:

To Artifact [ed05504ebf]:


83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102

		[ret appendCString: tb
			withLength: 4];

		break;
	}

	/*
	 * Class swizzle the string to be immutable. We declared the return type
	 * to be OFString*, so it can't be modified anyway. But not swizzling it
	 * would create a real copy each time -[copy] is called.
	 */
	ret->isa = [OFString class];
	return ret;
}

BOOL
of_base64_decode(OFDataArray *data, const char *string, size_t length)
{
	const uint8_t *buffer = (const uint8_t*)string;







<
|
|
<
<
<







83
84
85
86
87
88
89

90
91



92
93
94
95
96
97
98

		[ret appendCString: tb
			withLength: 4];

		break;
	}


	[ret makeImmutable];




	return ret;
}

BOOL
of_base64_decode(OFDataArray *data, const char *string, size_t length)
{
	const uint8_t *buffer = (const uint8_t*)string;