Searched defs:len (Results 1 - 19 of 19) sorted by relevance

/build/kati/
H A Dfile.cc41 size_t len = st.st_size; local
43 buf_.resize(len);
45 ssize_t r = HANDLE_EINTR(read(fd, &buf_[0], len));
46 if (r != static_cast<ssize_t>(len)) {
49 ERROR("Unexpected read length=%zd expected=%zu", r, len);
H A Dio.cc41 int len = LoadInt(fp); local
42 if (len < 0)
44 s->resize(len);
H A Dstring_piece.h70 StringPiece(const char* offset, size_type len) : ptr_(offset), length_(len) {} argument
85 void set(const char* data, size_type len) { argument
87 length_ = len;
93 void set(const void* data, size_type len) { argument
95 length_ = len;
H A Dstrutil.cc40 int len,
44 len &= ~15;
46 while (i < len) {
49 ranges16, ranges_size, b16, len - i,
56 return len;
62 int len,
68 i += SkipUntilSSE42(s, len, ranges, ranges_size);
70 for (; i < len; i++) {
78 int len = static_cast<int>(in->size()); local
79 for (s = i + 1; s < len;
39 SkipUntilSSE42(const char* s, int len, const char* ranges, int ranges_size) argument
61 SkipUntil(const char* s, int len, const char* ranges UNUSED, int ranges_size UNUSED, Cond cond) argument
[all...]
H A Dfind.cc987 ssize_t len = readlink(path.c_str(), buf, PATH_MAX); local
988 if (len < 0) {
992 buf[len] = 0;
H A Dparser.cc128 size_t len = p.first.size(); local
129 shortest_directive_len_ = min(len, shortest_directive_len_);
130 longest_directive_len_ = max(len, longest_directive_len_);
H A Dfunc.cc723 size_t len = st.st_size; local
725 out.resize(len);
726 ssize_t r = HANDLE_EINTR(read(fd, &out[0], len));
727 if (r != static_cast<ssize_t>(len)) {
/build/make/tools/ziptime/
H A DZipFile.cpp212 status_t ZipFile::EndOfCentralDir::readBuf(const uint8_t* buf, int len) argument
216 if (len < kEOCDLen) {
219 kEOCDLen, len);
/build/tools/ziptime/
H A DZipFile.cpp212 status_t ZipFile::EndOfCentralDir::readBuf(const uint8_t* buf, int len) argument
216 if (len < kEOCDLen) {
219 kEOCDLen, len);
/build/make/tools/fs_config/
H A Dfs_config_generate.c167 ssize_t len = fs_config_generate(buffer, sizeof(buffer), pc); local
168 if (len < 0) {
216 if (submit && (fwrite(buffer, 1, len, fp) != (size_t)len)) {
H A Dfs_config_test.cpp51 size_t len = data.size(); local
56 while (len > 0) {
57 uint16_t host_len = pc->len;
58 if (host_len > len) break;
71 len -= host_len;
/build/tools/fs_config/
H A Dfs_config_generate.c167 ssize_t len = fs_config_generate(buffer, sizeof(buffer), pc); local
168 if (len < 0) {
216 if (submit && (fwrite(buffer, 1, len, fp) != (size_t)len)) {
H A Dfs_config_test.cpp51 size_t len = data.size(); local
56 while (len > 0) {
57 uint16_t host_len = pc->len;
58 if (host_len > len) break;
71 len -= host_len;
/build/make/tools/atree/
H A Dfiles.cpp89 size_t len = p-q; local
90 if (len > 2 && *start == '"' && start[len - 1] == '"') {
92 len -= 2;
94 out->push_back(string(start, len));
104 size_t len = p-q; local
105 if (len > 2 && *start == '"' && start[len - 1] == '"') {
107 len -= 2;
109 out->push_back(string(start, len));
246 int len = strlen(p); local
[all...]
/build/tools/atree/
H A Dfiles.cpp89 size_t len = p-q; local
90 if (len > 2 && *start == '"' && start[len - 1] == '"') {
92 len -= 2;
94 out->push_back(string(start, len));
104 size_t len = p-q; local
105 if (len > 2 && *start == '"' && start[len - 1] == '"') {
107 len -= 2;
109 out->push_back(string(start, len));
246 int len = strlen(p); local
[all...]
/build/make/tools/signapk/src/com/android/signapk/
H A DSignApk.java494 // Create a new entry so that the compressed len is recomputed.
609 public void write(byte[] b, int off, int len) throws IOException { argument
612 footer.write(b, off, len);
616 out.write(b, off, len);
617 tee.write(b, off, len);
/build/make/tools/zipalign/
H A DZipFile.cpp1224 bool ReadAtOffset(uint8_t* buf, size_t len, uint32_t offset) const { argument
1236 size_t read = fread(buf, 1, len, fp_);
1237 if (read != len) {
1322 status_t ZipFile::EndOfCentralDir::readBuf(const uint8_t* buf, int len) argument
1327 if (len < kEOCDLen) {
1330 kEOCDLen, len);
1349 if (kEOCDLen + mCommentLen > len) {
1350 ALOGD("EOCD(%d) + comment(%" PRIu16 ") exceeds len (%d)\n",
1351 kEOCDLen, mCommentLen, len);
/build/tools/signapk/src/com/android/signapk/
H A DSignApk.java494 // Create a new entry so that the compressed len is recomputed.
609 public void write(byte[] b, int off, int len) throws IOException { argument
612 footer.write(b, off, len);
616 out.write(b, off, len);
617 tee.write(b, off, len);
/build/tools/zipalign/
H A DZipFile.cpp1224 bool ReadAtOffset(uint8_t* buf, size_t len, uint32_t offset) const { argument
1236 size_t read = fread(buf, 1, len, fp_);
1237 if (read != len) {
1322 status_t ZipFile::EndOfCentralDir::readBuf(const uint8_t* buf, int len) argument
1327 if (len < kEOCDLen) {
1330 kEOCDLen, len);
1349 if (kEOCDLen + mCommentLen > len) {
1350 ALOGD("EOCD(%d) + comment(%" PRIu16 ") exceeds len (%d)\n",
1351 kEOCDLen, mCommentLen, len);

Completed in 2770 milliseconds