Searched refs:readLen (Results 1 – 6 of 6) sorted by relevance
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/class_stream/ |
D | read.test.js | 40 let readLen = sr.readSync(new ArrayBuffer(4096)); 41 expect(readLen == FILE_CONTENT.length).assertTrue(); 67 let readLen = sr.readSync(new ArrayBuffer(4096), { length: 2 }); 68 expect(readLen == 2).assertTrue(); 94 let readLen = sr.readSync(new ArrayBuffer(4096), { offset: 2 }); 95 expect(readLen == FILE_CONTENT.length - 2).assertTrue(); 121 let readLen = sr.readSync(new ArrayBuffer(4096), { 125 expect(readLen == FILE_CONTENT.length - 1).assertTrue(); 234 let readLen = await sr.read(new ArrayBuffer(4096)); 235 expect(readLen == FILE_CONTENT.length).assertTrue(); [all …]
|
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/members/ |
D | read.test.js | 40 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096)); 41 expect(readLen == FILE_CONTENT.length).assertTrue(); 67 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096), { 70 expect(readLen == 1).assertTrue(); 96 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096), { 99 expect(readLen == FILE_CONTENT.length).assertTrue(); 125 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096), { 128 expect(readLen == FILE_CONTENT.length).assertTrue(); 183 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096), { 186 expect(readLen == FILE_CONTENT.length - 1).assertTrue(); [all …]
|
D | truncate.test.js | 42 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096)); 43 expect(readLen == truncateLen).assertTrue(); 76 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096)); 77 expect(readLen == truncateLen).assertTrue(); 107 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096)); 108 expect(readLen == truncateLen).assertTrue(); 141 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096)); 142 expect(readLen == truncateLen).assertTrue(); 230 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096)); 231 expect(readLen == 0).assertTrue(); [all …]
|
D | open.test.js | 167 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096)); 168 expect(readLen == 0).assertTrue(); 197 let readLen = fileIO.readSync(file.fd, new ArrayBuffer(4096), { offset: 0 }); 198 expect(readLen == length + FILE_CONTENT.length).assertTrue(); 396 .then((readLen) => { 397 expect(readLen == FILE_CONTENT.length).assertTrue(); 430 .then((readLen) => { 431 expect(readLen == FILE_CONTENT.length).assertTrue(); 705 .then((readLen) => { 706 expect(readLen == 0).assertTrue(); [all …]
|
/test/xts/device_attest_lite/services/core/network/ |
D | attest_channel.c | 191 size_t readLen = 0; in TLSRead() local 192 while (readLen < len) { in TLSRead() 193 … = mbedtls_ssl_read((mbedtls_ssl_context *)&(session->tlsConfig.sslCtx), (uint8_t*)(buf + readLen), in TLSRead() 194 len - readLen); in TLSRead() 200 readLen += ret; in TLSRead()
|
/test/xts/acts/multimedia_lite/media_lite_posix/player_native/src/ |
D | ActsMediaPlayerAudioTest.cpp | 108 size_t readLen; in StreamProcess() local 129 readLen = fread(data + buffer.offset, 1, len, pFile); in StreamProcess() 130 if (readLen <= len && readLen > 0) { in StreamProcess() 131 sample->streamSample->QueueBuffer(buffer.idx, buffer.offset, readLen, 0, flags1); in StreamProcess() 133 sample->streamSample->QueueBuffer(buffer.idx, buffer.offset, readLen, 0, flags2); in StreamProcess()
|