Home
last modified time | relevance | path

Searched refs:coder (Results 1 – 25 of 59) sorted by relevance

123

/external/chromium_org/third_party/JSON/JSON-2.59/t/
D19_incr.t18 my ($coder, $text) = @_;
20 $coder->canonical(1) if $] >= 5.017009;
26 $coder->incr_parse ($a);
27 $coder->incr_parse ($b);
29 my $data = $coder->incr_parse;
31 is ($coder->encode ($data), $coder->encode ($coder->decode ($text)), "data");
32 ok ($coder->incr_text =~ /^\s*$/, "tailws");
47 my $coder = new JSON;
52 $coder->incr_parse ($a);
53 $coder->incr_parse ($b);
[all …]
Dxe19_xs_and_suportbypp.t25 my ($coder, $str) = @_;
27 return $rv if eval { $rv = $coder->decode($str); 1 };
/external/chromium_org/sdch/open-vcdiff/src/
Dvcdiffengine.cc83 CodeTableWriterInterface* coder) const { in EncodeCopyForBestMatch()
111 coder->Add(unencoded_target_start, best_match.target_offset()); in EncodeCopyForBestMatch()
113 coder->Copy(best_match.source_offset(), best_match.size()); in EncodeCopyForBestMatch()
127 CodeTableWriterInterface* coder) const { in AddUnmatchedRemainder()
129 coder->Add(unencoded_target_start, unencoded_target_size); in AddUnmatchedRemainder()
138 CodeTableWriterInterface* coder) const { in FinishEncoding()
139 if (target_size != static_cast<size_t>(coder->target_length())) { in FinishEncoding()
143 << coder->target_length() << ")" << VCD_ENDL; in FinishEncoding()
145 coder->Output(diff); in FinishEncoding()
152 CodeTableWriterInterface* coder) const { in EncodeInternal()
[all …]
Dvcdiffengine.h75 CodeTableWriterInterface* coder) const;
90 CodeTableWriterInterface* coder) const;
101 CodeTableWriterInterface* coder) const;
105 CodeTableWriterInterface* coder) const;
109 CodeTableWriterInterface* coder) const;
Dvcdiff_main.cc610 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
611 if (!coder.Encode()) { in main()
618 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
619 if (!coder.Decode()) { in main()
638 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
639 if (!coder.Encode()) { in main()
644 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
645 if (!coder.DecodeAndCompare()) { in main()
/external/open-vcdiff/src/
Dvcdiffengine.cc83 CodeTableWriterInterface* coder) const { in EncodeCopyForBestMatch()
111 coder->Add(unencoded_target_start, best_match.target_offset()); in EncodeCopyForBestMatch()
113 coder->Copy(best_match.source_offset(), best_match.size()); in EncodeCopyForBestMatch()
127 CodeTableWriterInterface* coder) const { in AddUnmatchedRemainder()
129 coder->Add(unencoded_target_start, unencoded_target_size); in AddUnmatchedRemainder()
138 CodeTableWriterInterface* coder) const { in FinishEncoding()
139 if (target_size != static_cast<size_t>(coder->target_length())) { in FinishEncoding()
143 << coder->target_length() << ")" << VCD_ENDL; in FinishEncoding()
145 coder->Output(diff); in FinishEncoding()
152 CodeTableWriterInterface* coder) const { in EncodeInternal()
[all …]
Dvcdiffengine.h75 CodeTableWriterInterface* coder) const;
90 CodeTableWriterInterface* coder) const;
101 CodeTableWriterInterface* coder) const;
105 CodeTableWriterInterface* coder) const;
109 CodeTableWriterInterface* coder) const;
Dvcdiff_main.cc610 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
611 if (!coder.Encode()) { in main()
618 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
619 if (!coder.Decode()) { in main()
638 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
639 if (!coder.Encode()) { in main()
644 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
645 if (!coder.DecodeAndCompare()) { in main()
Dvcdiffengine_test.cc320 VCDiffCodeTableWriter coder(interleaved); in EncodeNothing() local
321 coder.Init(engine_.dictionary_size()); in EncodeNothing()
322 engine_.Encode("", 0, target_matching, &diff_output_string_, &coder); in EncodeNothing()
329 VCDiffCodeTableWriter coder(interleaved); in EncodeText() local
330 coder.Init(engine_.dictionary_size()); in EncodeText()
335 &coder); in EncodeText()
617 VCDiffCodeTableWriter coder(interleaved); in EncodeText() local
618 coder.Init(engine_.dictionary_size()); in EncodeText()
623 &coder); in EncodeText()
/external/chromium/sdch/open-vcdiff/src/
Dvcdiffengine.cc86 CodeTableWriterInterface* coder) const { in EncodeCopyForBestMatch()
114 coder->Add(unencoded_target_start, best_match.target_offset()); in EncodeCopyForBestMatch()
116 coder->Copy(best_match.source_offset(), best_match.size()); in EncodeCopyForBestMatch()
130 CodeTableWriterInterface* coder) const { in AddUnmatchedRemainder()
132 coder->Add(unencoded_target_start, unencoded_target_size); in AddUnmatchedRemainder()
141 CodeTableWriterInterface* coder) const { in FinishEncoding()
142 if (target_size != static_cast<size_t>(coder->target_length())) { in FinishEncoding()
146 << coder->target_length() << ")" << LOG_ENDL; in FinishEncoding()
148 coder->Output(diff); in FinishEncoding()
155 CodeTableWriterInterface* coder) const { in EncodeInternal()
[all …]
Dvcdiffengine.h75 CodeTableWriterInterface* coder) const;
90 CodeTableWriterInterface* coder) const;
101 CodeTableWriterInterface* coder) const;
105 CodeTableWriterInterface* coder) const;
109 CodeTableWriterInterface* coder) const;
Dvcdiffengine_test.cc341 VCDiffCodeTableWriter coder(interleaved); in EncodeNothing() local
342 coder.Init(engine_.dictionary_size()); in EncodeNothing()
343 engine_.Encode("", 0, target_matching, &diff_output_string_, &coder); in EncodeNothing()
345 actual_match_counts_ = coder.match_counts(); in EncodeNothing()
351 VCDiffCodeTableWriter coder(interleaved); in EncodeText() local
352 coder.Init(engine_.dictionary_size()); in EncodeText()
357 &coder); in EncodeText()
358 actual_match_counts_ = coder.match_counts(); in EncodeText()
640 VCDiffCodeTableWriter coder(interleaved); in EncodeText() local
641 coder.Init(engine_.dictionary_size()); in EncodeText()
[all …]
Dvcdiff_main.cc606 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
607 if (!coder.Encode()) { in main()
614 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
615 if (!coder.Decode()) { in main()
634 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
635 if (!coder.Encode()) { in main()
640 open_vcdiff::VCDiffFileBasedCoder coder; in main() local
641 if (!coder.DecodeAndCompare()) { in main()
/external/lzma/CPP/7zip/Archive/7z/
D7zHandler.cpp266 const CCoderInfo &coder = folderInfo.Coders[i]; in GetProperty() local
273 coder.MethodID, methodName); in GetProperty()
276 methodsString += ConvertMethodIdToString(coder.MethodID); in GetProperty()
280 if (coder.MethodID == k_Delta && coder.Props.GetCapacity() == 1) in GetProperty()
281 propsString = ConvertUInt32ToString((UInt32)coder.Props[0] + 1); in GetProperty()
282 else if (coder.MethodID == k_LZMA && coder.Props.GetCapacity() == 5) in GetProperty()
284 UInt32 dicSize = GetUi32((const Byte *)coder.Props + 1); in GetProperty()
287 else if (coder.MethodID == k_LZMA2 && coder.Props.GetCapacity() == 1) in GetProperty()
289 Byte p = coder.Props[0]; in GetProperty()
293 else if (coder.MethodID == k_PPMD && coder.Props.GetCapacity() == 5) in GetProperty()
[all …]
/external/lzma/CPP/7zip/Common/
DCreateCoder.cpp158 CMyComPtr<ICompressCoder> &coder, in CreateCoder() argument
175 else if (codec.NumInStreams == 1) coder = (ICompressCoder *)p; in CreateCoder()
186 else if (codec.NumInStreams == 1) coder = (ICompressCoder *)p; in CreateCoder()
207 HRESULT result = codecsInfo->CreateEncoder(i, &IID_ICompressCoder, (void **)&coder); in CreateCoder()
210 if (!coder) in CreateCoder()
227 HRESULT result = codecsInfo->CreateDecoder(i, &IID_ICompressCoder, (void **)&coder); in CreateCoder()
230 if (!coder) in CreateCoder()
248 coder = coderSpec; in CreateCoder()
257 CMyComPtr<ICompressCoder> &coder, in CreateCoder() argument
265 filter, coder, coder2, encode, true); in CreateCoder()
[all …]
DMethodProps.cpp14 HRESULT SetMethodProperties(const CMethod &method, const UInt64 *inSizeForReduce, IUnknown *coder) in SetMethodProperties() argument
43 coder->QueryInterface(IID_ICompressSetCoderProperties, (void **)&setCoderProperties); in SetMethodProperties()
70 coder->QueryInterface(IID_ICompressSetCoderProperties, (void **)&setCoderProperties); in SetMethodProperties()
DCreateCoder.h76 CMyComPtr<ICompressCoder> &coder,
83 CMyComPtr<ICompressCoder> &coder,
90 CMyComPtr<ICompressCoder> &coder, bool encode);
/external/clang/test/Analysis/
Dsuperclass.m42 - (void)restoreStateWithCoder:(NSCoder *)coder;
43 - (void)encodeRestorableStateWithCoder:(NSCoder *)coder;
46 - (void)restoreStateWithCoder:(NSCoder *)coder;
47 - (void)encodeRestorableStateWithCoder:(NSCoder *)coder;
68 - (void)restoreStateWithCoder:(NSCoder *)coder {}
69 - (void)encodeRestorableStateWithCoder:(NSCoder *)coder {}
181 - (void)restoreStateWithCoder:(NSCoder *)coder {
183 - (void)encodeRestorableStateWithCoder:(NSCoder *)coder {
192 - (void)restoreStateWithCoder:(NSCoder *)coder {
193 [super restoreStateWithCoder:coder];
[all …]
/external/lzma/C/
D7zDec.c66 static SRes SzDecodePpmd(CSzCoderInfo *coder, UInt64 inSize, ILookInStream *inStream, in SzDecodePpmd() argument
80 if (coder->Props.size != 5) in SzDecodePpmd()
84 unsigned order = coder->Props.data[0]; in SzDecodePpmd()
85 UInt32 memSize = GetUi32(coder->Props.data + 1); in SzDecodePpmd()
127 static SRes SzDecodeLzma(CSzCoderInfo *coder, UInt64 inSize, ILookInStream *inStream, in SzDecodeLzma() argument
134 RINOK(LzmaDec_AllocateProbs(&state, coder->Props.data, (unsigned)coder->Props.size, allocMain)); in SzDecodeLzma()
175 static SRes SzDecodeLzma2(CSzCoderInfo *coder, UInt64 inSize, ILookInStream *inStream, in SzDecodeLzma2() argument
182 if (coder->Props.size != 1) in SzDecodeLzma2()
184 RINOK(Lzma2Dec_AllocateProbs(&state, coder->Props.data[0], allocMain)); in SzDecodeLzma2()
349 CSzCoderInfo *coder = &folder->Coders[ci]; in SzFolder_Decode2() local
[all …]
/external/chromium_org/third_party/lzma_sdk/
D7zDec.c66 static SRes SzDecodePpmd(CSzCoderInfo *coder, UInt64 inSize, ILookInStream *inStream, in SzDecodePpmd() argument
80 if (coder->Props.size != 5) in SzDecodePpmd()
84 unsigned order = coder->Props.data[0]; in SzDecodePpmd()
85 UInt32 memSize = GetUi32(coder->Props.data + 1); in SzDecodePpmd()
127 static SRes SzDecodeLzma(CSzCoderInfo *coder, UInt64 inSize, ILookInStream *inStream, in SzDecodeLzma() argument
134 RINOK(LzmaDec_AllocateProbs(&state, coder->Props.data, (unsigned)coder->Props.size, allocMain)); in SzDecodeLzma()
175 static SRes SzDecodeLzma2(CSzCoderInfo *coder, UInt64 inSize, ILookInStream *inStream, in SzDecodeLzma2() argument
182 if (coder->Props.size != 1) in SzDecodeLzma2()
184 RINOK(Lzma2Dec_AllocateProbs(&state, coder->Props.data[0], allocMain)); in SzDecodeLzma2()
349 CSzCoderInfo *coder = &folder->Coders[ci]; in SzFolder_Decode2() local
[all …]
/external/lzma/CPP/7zip/Compress/
DBcj2Coder.h46 CCoderReleaser(CEncoder *coder): _coder(coder) {} in CCoderReleaser() argument
95 CCoderReleaser(CDecoder *coder): _coder(coder) {} in CCoderReleaser() argument
/external/chromium_org/net/cert/
Dx509_cert_types_mac.cc199 SecAsn1CoderRef coder = NULL; in ParseDistinguishedName() local
200 SecAsn1CoderCreate(&coder); in ParseDistinguishedName()
201 DCHECK(coder); in ParseDistinguishedName()
203 OSStatus err = SecAsn1Decode(coder, ber_name_data, length, kNameTemplate, in ParseDistinguishedName()
207 SecAsn1CoderRelease(coder); in ParseDistinguishedName()
276 SecAsn1CoderRelease(coder); in ParseDistinguishedName()
/external/chromium/net/base/
Dkeygen_handler_mac.cc108 SecAsn1CoderRef coder = NULL; in GenKeyAndSignChallenge() local
144 err = SecAsn1CoderCreate(&coder); in GenKeyAndSignChallenge()
163 err = SecAsn1EncodeItem(coder, &spkac.pkac, in GenKeyAndSignChallenge()
181 err = SecAsn1EncodeItem(coder, &spkac, in GenKeyAndSignChallenge()
209 if (coder) in GenKeyAndSignChallenge()
210 SecAsn1CoderRelease(coder); in GenKeyAndSignChallenge()
Dx509_cert_types_mac.cc189 SecAsn1CoderRef coder = NULL; in ParseDistinguishedName() local
190 SecAsn1CoderCreate(&coder); in ParseDistinguishedName()
191 DCHECK(coder); in ParseDistinguishedName()
193 OSStatus err = SecAsn1Decode(coder, ber_name_data, length, kNameTemplate, in ParseDistinguishedName()
197 SecAsn1CoderRelease(coder); in ParseDistinguishedName()
265 SecAsn1CoderRelease(coder); in ParseDistinguishedName()
/external/chromium_org/net/base/
Dkeygen_handler_mac.cc109 SecAsn1CoderRef coder = NULL; in GenKeyAndSignChallenge() local
145 err = SecAsn1CoderCreate(&coder); in GenKeyAndSignChallenge()
164 err = SecAsn1EncodeItem(coder, &spkac.pkac, in GenKeyAndSignChallenge()
182 err = SecAsn1EncodeItem(coder, &spkac, in GenKeyAndSignChallenge()
210 if (coder) in GenKeyAndSignChallenge()
211 SecAsn1CoderRelease(coder); in GenKeyAndSignChallenge()

123