Lines Matching refs:src
33 MtpStringBuffer::MtpStringBuffer(const char* src)
37 set(src);
40 MtpStringBuffer::MtpStringBuffer(const uint16_t* src)
44 set(src);
47 MtpStringBuffer::MtpStringBuffer(const MtpStringBuffer& src)
48 : mCharCount(src.mCharCount),
49 mByteCount(src.mByteCount)
51 memcpy(mBuffer, src.mBuffer, mByteCount);
58 void MtpStringBuffer::set(const char* src) {
59 int length = strlen(src);
62 memcpy(mBuffer, src, length);
67 while ((ch = *src++) != 0) {
72 if (! *src++) {
79 if (! *src++) {
84 if (! *src++) {
98 void MtpStringBuffer::set(const uint16_t* src) {
103 while ((ch = *src++) != 0 && count < 255) {
144 const uint8_t* src = mBuffer;
150 uint16_t ch1 = *src++;
156 uint16_t ch2 = *src++;
160 uint16_t ch2 = *src++;
161 uint16_t ch3 = *src++;