Home
last modified time | relevance | path

Searched refs:end_offset (Results 1 – 25 of 54) sorted by relevance

123

/external/libtextclassifier/native/utils/
Dwordpiece_tokenizer.cc96 std::vector<int>* end_offset, int* num_word_pieces) { in NoTokenFound() argument
100 end_offset->push_back(token.length()); in NoTokenFound()
103 end_offset->push_back(token.length()); in NoTokenFound()
115 std::vector<int>* end_offset) { in AddWord() argument
126 end_offset->push_back(byte_end); in AddWord()
137 std::vector<int>* end_offset) { in AddUnknownCharacter() argument
139 end_offset->push_back(byte_end); in AddUnknownCharacter()
165 std::vector<int>* end_offset, int* num_word_pieces) { in TokenizeL2RGreedy() argument
193 begin_offset, end_offset, num_word_pieces); in TokenizeL2RGreedy()
201 end_offset->insert(end_offset->end(), candidate_end_offsets.begin(), in TokenizeL2RGreedy()
[all …]
Dwordpiece_tokenizer.h50 std::vector<int>* end_offset, int* num_word_pieces);
59 std::vector<int>* end_offset, int* num_word_pieces);
/external/rust/cxx/gen/src/
Derror.rs131 let mut end_offset = start_offset; in display_syn_error() localVariable
133 end_offset -= start_column; in display_syn_error()
136 end_offset += source[end_offset..].find('\n').unwrap() + 1; in display_syn_error()
139 end_offset += source[end_offset..] in display_syn_error()
153 let diagnostic = diagnose(file, start_offset..end_offset, error); in display_syn_error()
/external/webrtc/modules/rtp_rtcp/source/
Dvideo_rtp_depacketizer_h264.cc114 size_t end_offset = nalu_start_offsets[i + 1] - kLengthFieldSize; in ProcessStapAOrSingleNalu() local
115 if (end_offset - start_offset < H264::kNaluTypeSize) { in ProcessStapAOrSingleNalu()
140 &payload_data[start_offset], end_offset - start_offset, &sps, in ProcessStapAOrSingleNalu()
166 &payload_data[end_offset], in ProcessStapAOrSingleNalu()
167 nalu_length + kNalHeaderSize - end_offset); in ProcessStapAOrSingleNalu()
187 end_offset - start_offset, &pps_id, in ProcessStapAOrSingleNalu()
203 &payload_data[start_offset], end_offset - start_offset); in ProcessStapAOrSingleNalu()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_read_validator.cpp63 FX_SAFE_FILESIZE end_offset = offset; in ReadBlockAtOffset() local
64 end_offset += size; in ReadBlockAtOffset()
65 if (!end_offset.IsValid() || end_offset.ValueOrDie() > file_size_) in ReadBlockAtOffset()
/external/llvm-project/lldb/source/Core/
DSourceManager.cpp496 size_t end_offset = GetLineOffset(line + 1); in GetLineLength() local
497 if (end_offset == UINT32_MAX) in GetLineLength()
498 end_offset = m_data_sp->GetByteSize(); in GetLineLength()
500 if (end_offset > start_offset) { in GetLineLength()
501 uint32_t length = end_offset - start_offset; in GetLineLength()
687 size_t end_offset = GetLineOffset(line_no + 1); in GetLine() local
688 if (end_offset == UINT32_MAX) { in GetLine()
689 end_offset = m_data_sp->GetByteSize(); in GetLine()
692 end_offset - start_offset); in GetLine()
/external/rust/crates/nom/src/bits/
Dstreaming.rs28 let mut end_offset: usize = 0; in take() localVariable
42 end_offset = remaining + offset; in take()
50 Ok(( (input.slice(cnt..), end_offset) , acc)) in take()
Dcomplete.rs28 let mut end_offset: usize = 0; in take() localVariable
42 end_offset = remaining + offset; in take()
50 Ok(( (input.slice(cnt..), end_offset) , acc)) in take()
/external/mesa3d/src/intel/compiler/
Dbrw_disasm_info.c34 dump_assembly(void *assembly, int start_offset, int end_offset, in dump_assembly() argument
43 brw_label_assembly(devinfo, assembly, start_offset, end_offset, mem_ctx); in dump_assembly()
54 int end_offset = next->offset; in dump_assembly() local
84 brw_disassemble(devinfo, assembly, start_offset, end_offset, in dump_assembly()
Dbrw_disasm_info.h68 dump_assembly(void *assembly, int start_offset, int end_offset,
/external/llvm-project/llvm/lib/DebugInfo/DWARF/
DDWARFDebugArangeSet.cpp137 uint64_t end_offset = Offset + full_length; in extract() local
138 while (*offset_ptr < end_offset) { in extract()
146 if (*offset_ptr == end_offset) in extract()
/external/mesa3d/src/intel/common/
Dgen_disasm.c95 int end_offset = next->offset; in gen_disassemble() local
97 brw_disassemble(devinfo, assembly, start_offset, end_offset, in gen_disassemble()
/external/protobuf/src/google/protobuf/io/
Dprinter.h61 virtual void AddAnnotation(size_t begin_offset, size_t end_offset,
84 virtual void AddAnnotation(size_t begin_offset, size_t end_offset, in AddAnnotation() argument
94 annotation->set_end(end_offset); in AddAnnotation()
/external/dynamic_depth/internal/xmpmeta/
Dxmp_parser.cc133 const size_t end_offset = section.data.size(); in GetExtendedXmpSections() local
134 const size_t section_size = end_offset - section_start_offset; in GetExtendedXmpSections()
135 if (end_offset < section_start_offset || in GetExtendedXmpSections()
141 xmp_end_offsets.push_back(end_offset); in GetExtendedXmpSections()
/external/harfbuzz_ng/src/
Dhb-ot-var-gvar-table.hh473 unsigned int end_offset = get_offset (glyph+1); in get_glyph_var_data() local
475 if ((start_offset == end_offset) || in get_glyph_var_data()
477 (start_offset + GlyphVarData::min_size > end_offset))) in get_glyph_var_data()
494 unsigned int end_offset = get_offset (glyph + 1); in get_glyph_var_data_length() local
496 if (unlikely (start_offset > end_offset || end_offset > get_offset (glyphCount))) in get_glyph_var_data_length()
498 return end_offset - start_offset; in get_glyph_var_data_length()
/external/sfntly/cpp/src/sfntly/data/
Dreadable_font_data.h211 int32_t end_offset,
246 int32_t end_offset,
Dreadable_font_data.cc230 int32_t end_offset, in SearchUShort() argument
244 int32_t location_end = ReadUShort(end_index + location * end_offset); in SearchUShort()
285 int32_t end_offset, in SearchULong() argument
300 int32_t location_end = ReadULongAsInt(end_index + location * end_offset); in SearchULong()
/external/llvm-project/lldb/source/Symbol/
DDWARFCallFrameInfo.cpp250 dw_offset_t cie_id, end_offset; in ParseCIE() local
255 end_offset = cie_offset + length + 12; in ParseCIE()
258 end_offset = cie_offset + length + 4; in ParseCIE()
378 if (end_offset > offset) { in ParseCIE()
380 cie_sp->inst_length = end_offset - offset; in ParseCIE()
382 while (offset < end_offset) { in ParseCIE()
572 const dw_offset_t end_offset = current_entry + length + (is_64bit ? 12 : 4); in FDEToUnwindPlan() local
638 while (m_cfi_data.ValidOffset(offset) && offset < end_offset) { in FDEToUnwindPlan()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_query.c37 unsigned end_offset; member
1095 params->end_offset = 8; in r600_get_hw_query_params()
1102 params->end_offset = 8; in r600_get_hw_query_params()
1107 params->end_offset = 0; in r600_get_hw_query_params()
1112 params->end_offset = 24; in r600_get_hw_query_params()
1113 params->fence_offset = params->end_offset + 4; in r600_get_hw_query_params()
1117 params->end_offset = 16; in r600_get_hw_query_params()
1118 params->fence_offset = params->end_offset + 4; in r600_get_hw_query_params()
1122 params->end_offset = 24 - index * 8; in r600_get_hw_query_params()
1123 params->fence_offset = params->end_offset + 4; in r600_get_hw_query_params()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_query.c40 unsigned end_offset; member
1193 params->end_offset = 8; in si_get_hw_query_params()
1200 params->end_offset = 8; in si_get_hw_query_params()
1205 params->end_offset = 0; in si_get_hw_query_params()
1210 params->end_offset = 24; in si_get_hw_query_params()
1211 params->fence_offset = params->end_offset + 4; in si_get_hw_query_params()
1215 params->end_offset = 16; in si_get_hw_query_params()
1216 params->fence_offset = params->end_offset + 4; in si_get_hw_query_params()
1220 params->end_offset = 24 - index * 8; in si_get_hw_query_params()
1221 params->fence_offset = params->end_offset + 4; in si_get_hw_query_params()
[all …]
/external/llvm-project/lldb/source/Plugins/ObjectFile/Breakpad/
DObjectFileBreakpad.cpp142 offset_t end_offset = end_ptr - m_data.GetDataStart(); in CreateSections() local
147 end_offset - section_start, /*log2align*/ 0, /*flags*/ 0); in CreateSections()
/external/selinux/libsepol/src/
Dmodule.c65 long prev_offset, end_offset; in policy_file_length() local
75 end_offset = ftell(fp->fp); in policy_file_length()
76 if (end_offset < 0) in policy_file_length()
77 return end_offset; in policy_file_length()
81 *out = end_offset; in policy_file_length()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw.h39 unsigned end_offset,
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_state.c536 unsigned end_offset = elements[idx].src_offset + element_size; in etna_vertex_elements_state_create() local
546 assert(element_size != 0 && (end_offset - start_offset) < 256); in etna_vertex_elements_state_create()
551 end_offset != elements[idx + 1].src_offset; in etna_vertex_elements_state_create()
567 VIVS_FE_VERTEX_ELEMENT_CONFIG_END(end_offset - start_offset); in etna_vertex_elements_state_create()
577 VIVS_NFE_GENERIC_ATTRIB_CONFIG1_END(end_offset - start_offset); in etna_vertex_elements_state_create()
/external/compiler-rt/lib/asan/
Dasan_poisoning.cc301 s8 end_offset = (s8)(size - aligned_size); in PoisonAlignedStackMemory() local
307 if (end_value > 0 && end_value <= end_offset) in PoisonAlignedStackMemory()
313 *shadow_end = Max(end_value, end_offset); in PoisonAlignedStackMemory()

123