Home
last modified time | relevance | path

Searched refs:ParseContext (Results 1 - 25 of 152) sorted by relevance

1234567

/third_party/protobuf/csharp/src/Google.Protobuf/
H A DFieldCodec.cs222 return new FieldCodec<string>((ref ParseContext ctx) => ctx.ReadString(), (ref WriteContext ctx, string value) => ctx.WriteString(value), CodedOutputStream.ComputeStringSize, tag, defaultValue); in ForString()
233 return new FieldCodec<ByteString>((ref ParseContext ctx) => ctx.ReadBytes(), (ref WriteContext ctx, ByteString value) => ctx.WriteBytes(value), CodedOutputStream.ComputeBytesSize, tag, defaultValue); in ForBytes()
244 return new FieldCodec<bool>((ref ParseContext ctx) => ctx.ReadBool(), (ref WriteContext ctx, bool value) => ctx.WriteBool(value), CodedOutputStream.BoolSize, tag, defaultValue); in ForBool()
255 return new FieldCodec<int>((ref ParseContext ctx) => ctx.ReadInt32(), (ref WriteContext output, int value) => output.WriteInt32(value), CodedOutputStream.ComputeInt32Size, tag, defaultValue); in ForInt32()
266 return new FieldCodec<int>((ref ParseContext ctx) => ctx.ReadSInt32(), (ref WriteContext output, int value) => output.WriteSInt32(value), CodedOutputStream.ComputeSInt32Size, tag, defaultValue); in ForSInt32()
277 return new FieldCodec<uint>((ref ParseContext ctx) => ctx.ReadFixed32(), (ref WriteContext output, uint value) => output.WriteFixed32(value), 4, tag, defaultValue); in ForFixed32()
288 return new FieldCodec<int>((ref ParseContext ctx) => ctx.ReadSFixed32(), (ref WriteContext output, int value) => output.WriteSFixed32(value), 4, tag, defaultValue); in ForSFixed32()
299 return new FieldCodec<uint>((ref ParseContext ctx) => ctx.ReadUInt32(), (ref WriteContext output, uint value) => output.WriteUInt32(value), CodedOutputStream.ComputeUInt32Size, tag, defaultValue); in ForUInt32()
310 return new FieldCodec<long>((ref ParseContext ctx) => ctx.ReadInt64(), (ref WriteContext output, long value) => output.WriteInt64(value), CodedOutputStream.ComputeInt64Size, tag, defaultValue); in ForInt64()
321 return new FieldCodec<long>((ref ParseContext ct in ForSInt64()
[all...]
H A DParsingPrimitivesWrappers.cs303 internal static float? ReadFloatWrapperLittleEndian(ref ParseContext ctx) in ReadFloatWrapperLittleEndian()
308 internal static float? ReadFloatWrapperSlow(ref ParseContext ctx) in ReadFloatWrapperSlow()
313 internal static double? ReadDoubleWrapperLittleEndian(ref ParseContext ctx) in ReadDoubleWrapperLittleEndian()
318 internal static double? ReadDoubleWrapperSlow(ref ParseContext ctx) in ReadDoubleWrapperSlow()
323 internal static bool? ReadBoolWrapper(ref ParseContext ctx) in ReadBoolWrapper()
328 internal static uint? ReadUInt32Wrapper(ref ParseContext ctx) in ReadUInt32Wrapper()
333 internal static int? ReadInt32Wrapper(ref ParseContext ctx) in ReadInt32Wrapper()
338 internal static ulong? ReadUInt64Wrapper(ref ParseContext ctx) in ReadUInt64Wrapper()
343 internal static ulong? ReadUInt64WrapperSlow(ref ParseContext ctx) in ReadUInt64WrapperSlow()
348 internal static long? ReadInt64Wrapper(ref ParseContext ct
[all...]
H A DParseContext.cs53 public ref struct ParseContext struct
62 internal static void Initialize(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, out ParseContext ctx) in Initialize()
69 /// Creates a ParseContext instance from CodedInputStream.
70 /// WARNING: internally this copies the CodedInputStream's state, so after done with the ParseContext,
74 internal static void Initialize(CodedInputStream input, out ParseContext ctx) in Initialize()
84 internal static void Initialize(ReadOnlySequence<byte> input, out ParseContext ctx) in Initialize()
90 internal static void Initialize(ReadOnlySequence<byte> input, int recursionLimit, out ParseContext ctx) in Initialize()
H A DUnknownFieldSet.cs204 private bool MergeFieldFrom(ref ParseContext ctx) in MergeFieldFrom()
250 internal void MergeGroupFrom(ref ParseContext ctx) in MergeGroupFrom()
278 ParseContext.Initialize(input, out ParseContext ctx); in MergeFieldFrom()
300 ref ParseContext ctx) in MergeFieldFrom()
H A DCodedInputStream.cs434 // What happends is that we first initialize a ParseContext from the current coded input stream only to parse the length of the message, at which point in ReadMessage()
439 ParseContext.Initialize(ref span, ref state, out ParseContext ctx); in ReadMessage()
455 ParseContext.Initialize(this, out ParseContext ctx); in ReadGroup()
687 ParseContext.Initialize(this, out ParseContext ctx); in ReadRawMessage()
H A DParsingPrimitivesMessages.cs115 public static void ReadMessage(ref ParseContext ctx, IMessage message) in ReadMessage()
137 public static void ReadGroup(ref ParseContext ctx, IMessage message) in ReadGroup()
153 public static void ReadGroup(ref ParseContext ctx, int fieldNumber, UnknownFieldSet set) in ReadGroup()
167 public static void ReadRawMessage(ref ParseContext ctx, IMessage message) in ReadRawMessage()
176 // which doesn't provide the InternalMergeFrom method that takes a ParseContext. in ReadRawMessage()
188 // (e.g. ParseContext was created directly from a ReadOnlySequence). in ReadRawMessage()
191 // up-to-date generated code with ParseContext support (and fail otherwise). in ReadRawMessage()
192 throw new InvalidProtocolBufferException($"Message {message.GetType().Name} doesn't provide the generated method that enables ParseContext-based parsing. You might need to regenerate the generated protobuf code."); in ReadRawMessage()
H A DExtensionValue.cs41 void MergeFrom(ref ParseContext ctx); in MergeFrom()
95 public void MergeFrom(ref ParseContext ctx) in MergeFrom()
184 public void MergeFrom(ref ParseContext ctx) in MergeFrom()
/third_party/protobuf/src/google/protobuf/
H A Dparse_context.cc315 const char* ParseContext::ParseMessage(MessageLite* msg, const char* ptr) { in ParseMessage()
318 const char* ParseContext::ParseMessage(Message* msg, const char* ptr) { in ParseMessage()
398 if (PROTOBUF_PREDICT_FALSE(res > INT_MAX - ParseContext::kSlopBytes)) { in ReadSizeFallback()
405 ParseContext*) { in StringParser()
424 ParseContext* ctx) { in InlineGreedyStringParser()
432 const char* VarintParser(void* object, const char* ptr, ParseContext* ctx) { in VarintParser()
449 ParseContext* ctx) { in PackedInt32Parser()
453 ParseContext* ctx) { in PackedUInt32Parser()
457 ParseContext* ctx) { in PackedInt64Parser()
461 ParseContext* ct in PackedUInt64Parser()
[all...]
H A Dparse_context.h271 // the ParseContext, but case 2 is most easily and optimally implemented in
337 // ParseContext holds all data that is global to the entire parse. Most
341 class PROTOBUF_EXPORT ParseContext : public EpsCopyInputStream { class
349 ParseContext(int depth, bool aliasing, const char** start, T&&... args) in ParseContext() function in google::protobuf::ParseContext
608 PROTOBUF_MUST_USE_RESULT const char* ParseContext::ParseMessage( in ParseMessage()
647 std::string* s, const char* ptr, ParseContext* ctx);
665 ParseContext* ctx) { in FieldParser()
712 ParseContext* ctx) { in WireFormatParser()
732 void* object, const char* ptr, ParseContext* ctx);
734 void* object, const char* ptr, ParseContext* ct
[all...]
H A Dunknown_field_set.cc291 ParseContext* ctx) { in ParseLengthDelimited()
297 const char* ParseGroup(uint32 num, const char* ptr, ParseContext* ctx) { in ParseGroup()
305 const char* _InternalParse(const char* ptr, ParseContext* ctx) { in _InternalParse()
314 ParseContext* ctx) { in UnknownGroupParse()
320 const char* ptr, ParseContext* ctx) { in UnknownFieldParse()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
H A DEHFrameSupportImpl.h73 struct ParseContext { struct in llvm::jitlink::EHFrameEdgeFixer
74 ParseContext(LinkGraph &G) : G(G) {} in ParseContext() function
90 Error processBlock(ParseContext &PC, Block &B);
91 Error processCIE(ParseContext &PC, Block &B, size_t RecordOffset,
93 Error processFDE(ParseContext &PC, Block &B, size_t RecordOffset,
101 Expected<Symbol &> getOrCreateSymbol(ParseContext &PC, JITTargetAddress Addr);
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/
H A DParseRawPrimitivesBenchmark.cs129 InitializeParseContext(varintInputBuffers[encodedSize], out ParseContext ctx); in ParseRawVarint32_ParseContext()
173 InitializeParseContext(varintInputBuffers[encodedSize], out ParseContext ctx); in ParseRawVarint64_ParseContext()
199 InitializeParseContext(fixedIntInputBuffer, out ParseContext ctx); in ParseFixed32_ParseContext()
225 InitializeParseContext(fixedIntInputBuffer, out ParseContext ctx); in ParseFixed64_ParseContext()
251 InitializeParseContext(floatInputBuffer, out ParseContext ctx); in ParseRawFloat_ParseContext()
277 InitializeParseContext(doubleInputBuffer, out ParseContext ctx); in ParseRawDouble_ParseContext()
303 InitializeParseContext(stringInputBuffers[encodedSize], out ParseContext ctx); in ParseString_ParseContext()
316 InitializeParseContext(stringInputBuffersSegmented[encodedSize], out ParseContext ctx); in ParseString_ParseContext_MultipleSegments()
342 InitializeParseContext(stringInputBuffers[encodedSize], out ParseContext ctx); in ParseBytes_ParseContext()
355 InitializeParseContext(stringInputBuffersSegmented[encodedSize], out ParseContext ct in ParseBytes_ParseContext_MultipleSegments()
[all...]
/third_party/ffmpeg/libavcodec/
H A Dparser.h28 typedef struct ParseContext{ struct
36 int overread_index; ///< the index into ParseContext.buffer of the overread bytes
38 } ParseContext; typedef
47 int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size);
H A Dh263_parser.c32 int ff_h263_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size){
35 static int h263_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
77 ParseContext *pc = s->priv_data;
103 .priv_data_size = sizeof(ParseContext),
H A Dcavs_parser.c36 static int cavs_find_frame_end(ParseContext *pc, const uint8_t *buf, in cavs_find_frame_end()
81 ParseContext *pc = s->priv_data; in cavsvideo_parse()
102 .priv_data_size = sizeof(ParseContext),
H A Dlatm_parser.c34 ParseContext pc;
46 ParseContext *pc = &s->pc; in latm_find_frame_end()
88 ParseContext *pc = &s->pc; in latm_parse()
H A Dh261_parser.c30 static int h261_find_frame_end(ParseContext *pc, AVCodecContext *avctx, in h261_find_frame_end()
71 ParseContext *pc = s->priv_data; in h261_parse()
91 .priv_data_size = sizeof(ParseContext),
H A Dmpeg4video_parser.c36 ParseContext pc;
42 int ff_mpeg4_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size) in ff_mpeg4_find_frame_end()
48 static int mpeg4_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size) in ff_mpeg4_find_frame_end()
145 ParseContext *pc = s->priv_data; in mpeg4video_parse()
H A Djpeg2000_parser.c37 ParseContext pc;
51 ParseContext *pc = &m->pc; in reset_context()
95 ParseContext *pc= &m->pc; in find_frame_end()
194 ParseContext *pc = &m->pc; in jpeg2000_parse()
H A Dg723_1_parser.c28 ParseContext pc;
36 ParseContext *pc = &s->pc; in g723_1_parse()
H A Dmjpeg_parser.c32 ParseContext pc;
41 ParseContext *pc= &m->pc; in find_frame_end()
110 ParseContext *pc = &m->pc; in jpeg_parse()
H A Davs3_parser.c28 static int avs3_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size) in avs3_find_frame_end()
152 ParseContext *pc = s->priv_data; in avs3_parse()
176 .priv_data_size = sizeof(ParseContext),
H A Ddnxhd_parser.c31 ParseContext pc;
40 ParseContext *pc = &dctx->pc; in dnxhd_find_frame_end()
123 ParseContext *pc = &dctx->pc; in dnxhd_parse()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp40 ParseContext OutsideLoad(false); in evaluate()
80 struct ParseContext { struct in llvm::RuntimeDyldCheckerExprEval
82 ParseContext(bool IsInsideLoad) : IsInsideLoad(IsInsideLoad) {} in ParseContext() function
290 ParseContext PCtx) const { in evalNextPC()
328 evalStubOrGOTAddr(StringRef Expr, ParseContext PCtx, bool IsStubAddr) const { in evalStubOrGOTAddr()
365 ParseContext PCtx) const { in evalSectionAddr()
405 ParseContext PCtx) const { in evalIdentifierExpr()
480 ParseContext PCtx) const { in evalParensExpr()
519 ParseContext LoadCtx(true); in evalLoadExpr()
547 ParseContext PCt in evalSimpleExpr()
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
H A DCodedInputStreamTest.cs72 AssertReadFromParseContext(new ReadOnlySequence<byte>(data), (ref ParseContext ctx) => in AssertReadVarint()
77 AssertReadFromParseContext(new ReadOnlySequence<byte>(data), (ref ParseContext ctx) => in AssertReadVarint()
92 AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, bufferSize), (ref ParseContext ctx) => in AssertReadVarint()
97 AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, bufferSize), (ref ParseContext ctx) => in AssertReadVarint()
129 AssertReadFromParseContext(new ReadOnlySequence<byte>(data), (ref ParseContext ctx) => in AssertReadVarintFailure()
142 AssertReadFromParseContext(new ReadOnlySequence<byte>(data), (ref ParseContext ctx) => in AssertReadVarintFailure()
160 private delegate void ParseContextAssertAction(ref ParseContext ctx); in ParseContextAssertAction()
164 ParseContext.Initialize(input, out ParseContext parseCtx); in AssertReadFromParseContext()
220 AssertReadFromParseContext(new ReadOnlySequence<byte>(data), (ref ParseContext ct in AssertReadLittleEndian32()
[all...]

Completed in 16 milliseconds

1234567