/third_party/protobuf/csharp/src/Google.Protobuf/ |
D | InvalidProtocolBufferException.cs | 42 public sealed class InvalidProtocolBufferException : IOException class 44 internal InvalidProtocolBufferException(string message) in InvalidProtocolBufferException() method in Google.Protobuf.InvalidProtocolBufferException 49 internal InvalidProtocolBufferException(string message, Exception innerException) in InvalidProtocolBufferException() method in Google.Protobuf.InvalidProtocolBufferException 54 internal static InvalidProtocolBufferException MoreDataAvailable() in MoreDataAvailable() 56 return new InvalidProtocolBufferException( in MoreDataAvailable() 60 internal static InvalidProtocolBufferException TruncatedMessage() in TruncatedMessage() 62 return new InvalidProtocolBufferException( in TruncatedMessage() 69 internal static InvalidProtocolBufferException NegativeSize() in NegativeSize() 71 return new InvalidProtocolBufferException( in NegativeSize() 76 internal static InvalidProtocolBufferException MalformedVarint() in MalformedVarint() [all …]
|
D | JsonParser.cs | 140 throw new InvalidProtocolBufferException("Expected end of JSON after object"); in Merge() 155 throw InvalidProtocolBufferException.JsonRecursionLimitExceeded(); in Merge() 170 throw new InvalidProtocolBufferException("Expected an object"); in Merge() 201 …throw new InvalidProtocolBufferException($"Multiple values specified for oneof {field.ContainingOn… in Merge() 214 throw new InvalidProtocolBufferException("Unknown field: " + name); in Merge() 258 …throw new InvalidProtocolBufferException("Repeated field value was not an array. Token type: " + t… in MergeRepeatedField() 273 … throw new InvalidProtocolBufferException("Repeated field elements cannot be null"); in MergeRepeatedField() 285 throw new InvalidProtocolBufferException("Expected an object to populate a map"); in MergeMapField() 293 throw new InvalidProtocolBufferException("Invalid map field: " + field.FullName); in MergeMapField() 308 throw new InvalidProtocolBufferException("Map values must not be null"); in MergeMapField() [all …]
|
D | ParsingPrimitivesMessages.cs | 59 throw new InvalidProtocolBufferException( in SkipLastField() 87 throw InvalidProtocolBufferException.RecursionLimitExceeded(); in SkipGroup() 95 throw InvalidProtocolBufferException.TruncatedMessage(); in SkipGroup() 109 throw new InvalidProtocolBufferException( in SkipGroup() 120 throw InvalidProtocolBufferException.RecursionLimitExceeded(); in ReadMessage() 131 throw InvalidProtocolBufferException.TruncatedMessage(); in ReadMessage() 141 throw InvalidProtocolBufferException.RecursionLimitExceeded(); in ReadGroup() 157 throw InvalidProtocolBufferException.RecursionLimitExceeded(); in ReadGroup() 192 …throw new InvalidProtocolBufferException($"Message {message.GetType().Name} doesn't provide the ge… in ReadRawMessage() 218 throw InvalidProtocolBufferException.MoreDataAvailable(); in CheckReadEndOfStreamTag() [all …]
|
D | SegmentedBufferHelper.cs | 117 throw InvalidProtocolBufferException.NegativeSize(); in PushLimit() 123 throw InvalidProtocolBufferException.TruncatedMessage(); in PushLimit() 175 throw InvalidProtocolBufferException.TruncatedMessage(); in RefillFromReadOnlySequence() 201 throw InvalidProtocolBufferException.TruncatedMessage(); in RefillFromReadOnlySequence() 215 throw InvalidProtocolBufferException.SizeLimitExceeded(); in RefillFromReadOnlySequence() 230 throw InvalidProtocolBufferException.TruncatedMessage(); in RefillFromCodedInputStream() 252 throw InvalidProtocolBufferException.TruncatedMessage(); in RefillFromCodedInputStream() 266 throw InvalidProtocolBufferException.SizeLimitExceeded(); in RefillFromCodedInputStream()
|
D | ParsingPrimitives.cs | 122 throw InvalidProtocolBufferException.InvalidTag(); in ParseTag() 190 throw InvalidProtocolBufferException.MalformedVarint(); in ParseRawVarint64() 209 throw InvalidProtocolBufferException.MalformedVarint(); in ParseRawVarint64SlowPath() 266 throw InvalidProtocolBufferException.MalformedVarint(); in ParseRawVarint32() 314 throw InvalidProtocolBufferException.MalformedVarint(); in ParseRawVarint32SlowPath() 438 throw InvalidProtocolBufferException.NegativeSize(); in ReadRawBytes() 522 throw InvalidProtocolBufferException.NegativeSize(); in SkipRawBytes() 591 throw InvalidProtocolBufferException.NegativeSize(); in ReadRawString() 680 throw InvalidProtocolBufferException.TruncatedMessage(); in ValidateCurrentLimit() 712 throw InvalidProtocolBufferException.TruncatedMessage(); in ReadRawVarint32() [all …]
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | InvalidProtocolBufferException.java | 41 public class InvalidProtocolBufferException extends IOException { class 45 public InvalidProtocolBufferException(final String description) { in InvalidProtocolBufferException() method in InvalidProtocolBufferException 49 public InvalidProtocolBufferException(IOException e) { in InvalidProtocolBufferException() method in InvalidProtocolBufferException 53 public InvalidProtocolBufferException(final String description, IOException e) { in InvalidProtocolBufferException() method in InvalidProtocolBufferException 63 public InvalidProtocolBufferException setUnfinishedMessage(MessageLite unfinishedMessage) { in setUnfinishedMessage() 83 static InvalidProtocolBufferException truncatedMessage() { in truncatedMessage() 84 return new InvalidProtocolBufferException( in truncatedMessage() 91 static InvalidProtocolBufferException negativeSize() { in negativeSize() 92 return new InvalidProtocolBufferException( in negativeSize() 97 static InvalidProtocolBufferException malformedVarint() { in malformedVarint() [all …]
|
D | Parser.java | 61 public MessageType parseFrom(CodedInputStream input) throws InvalidProtocolBufferException; in parseFrom() 69 throws InvalidProtocolBufferException; in parseFrom() 75 public MessageType parsePartialFrom(CodedInputStream input) throws InvalidProtocolBufferException; in parsePartialFrom() 83 throws InvalidProtocolBufferException; in parsePartialFrom() 92 public MessageType parseFrom(ByteBuffer data) throws InvalidProtocolBufferException; in parseFrom() 99 throws InvalidProtocolBufferException; in parseFrom() 104 public MessageType parseFrom(ByteString data) throws InvalidProtocolBufferException; in parseFrom() 111 throws InvalidProtocolBufferException; in parseFrom() 117 public MessageType parsePartialFrom(ByteString data) throws InvalidProtocolBufferException; in parsePartialFrom() 124 throws InvalidProtocolBufferException; in parsePartialFrom() [all …]
|
D | AbstractParser.java | 65 throws InvalidProtocolBufferException { in checkMessageInitialized() 79 throws InvalidProtocolBufferException { in parsePartialFrom() 85 throws InvalidProtocolBufferException { in parseFrom() 90 public MessageType parseFrom(CodedInputStream input) throws InvalidProtocolBufferException { in parseFrom() 96 throws InvalidProtocolBufferException { in parsePartialFrom() 103 } catch (InvalidProtocolBufferException e) { in parsePartialFrom() 107 } catch (InvalidProtocolBufferException e) { in parsePartialFrom() 113 public MessageType parsePartialFrom(ByteString data) throws InvalidProtocolBufferException { in parsePartialFrom() 119 throws InvalidProtocolBufferException { in parseFrom() 124 public MessageType parseFrom(ByteString data) throws InvalidProtocolBufferException { in parseFrom() [all …]
|
D | CodedInputStream.java | 153 } catch (InvalidProtocolBufferException ex) { in newInstance() 215 public abstract void checkLastTagWas(final int value) throws InvalidProtocolBufferException; in checkLastTagWas() 468 public abstract int pushLimit(int byteLimit) throws InvalidProtocolBufferException; in pushLimit() 560 throw InvalidProtocolBufferException.truncatedMessage(); in readRawVarint32() 571 throw InvalidProtocolBufferException.truncatedMessage(); in readRawVarint32() 577 throw InvalidProtocolBufferException.malformedVarint(); in readRawVarint32() 589 throw InvalidProtocolBufferException.truncatedMessage(); in readRawVarint32() 627 throw InvalidProtocolBufferException.invalidTag(); in readTag() 633 public void checkLastTagWas(final int value) throws InvalidProtocolBufferException { in checkLastTagWas() 635 throw InvalidProtocolBufferException.invalidEndTag(); in checkLastTagWas() [all …]
|
D | BinaryReader.java | 156 throw InvalidProtocolBufferException.invalidWireType(); in skipField() 227 throw InvalidProtocolBufferException.invalidUtf8(); in readStringInternal() 265 throw InvalidProtocolBufferException.parseFailure(); in readMessage() 300 throw InvalidProtocolBufferException.parseFailure(); in readGroup() 392 throw InvalidProtocolBufferException.invalidWireType(); in readDoubleList() 421 throw InvalidProtocolBufferException.invalidWireType(); in readDoubleList() 456 throw InvalidProtocolBufferException.invalidWireType(); in readFloatList() 485 throw InvalidProtocolBufferException.invalidWireType(); in readFloatList() 520 throw InvalidProtocolBufferException.invalidWireType(); in readUInt64List() 549 throw InvalidProtocolBufferException.invalidWireType(); in readUInt64List() [all …]
|
D | CodedInputStreamReader.java | 104 throw InvalidProtocolBufferException.invalidWireType(); in requireWireType() 205 throw InvalidProtocolBufferException.recursionLimitExceeded(); in readMessage() 234 throw InvalidProtocolBufferException.parseFailure(); in readGroup() 312 throw InvalidProtocolBufferException.invalidWireType(); in readDoubleList() 338 throw InvalidProtocolBufferException.invalidWireType(); in readDoubleList() 370 throw InvalidProtocolBufferException.invalidWireType(); in readFloatList() 396 throw InvalidProtocolBufferException.invalidWireType(); in readFloatList() 428 throw InvalidProtocolBufferException.invalidWireType(); in readUInt64List() 454 throw InvalidProtocolBufferException.invalidWireType(); in readUInt64List() 486 throw InvalidProtocolBufferException.invalidWireType(); in readInt64List() [all …]
|
D | ArrayDecoders.java | 185 throws InvalidProtocolBufferException { in decodeString() 189 throw InvalidProtocolBufferException.negativeSize(); in decodeString() 201 throws InvalidProtocolBufferException { in decodeStringRequireUtf8() 205 throw InvalidProtocolBufferException.negativeSize(); in decodeStringRequireUtf8() 217 throws InvalidProtocolBufferException { in decodeBytes() 221 throw InvalidProtocolBufferException.negativeSize(); in decodeBytes() 223 throw InvalidProtocolBufferException.truncatedMessage(); in decodeBytes() 243 throw InvalidProtocolBufferException.truncatedMessage(); in decodeMessageField() 433 throw InvalidProtocolBufferException.truncatedMessage(); in decodePackedVarint32List() 449 throw InvalidProtocolBufferException.truncatedMessage(); in decodePackedVarint64List() [all …]
|
D | MessageLite.java | 197 Builder mergeFrom(ByteString data) throws InvalidProtocolBufferException; in mergeFrom() 206 throws InvalidProtocolBufferException; in mergeFrom() 214 Builder mergeFrom(byte[] data) throws InvalidProtocolBufferException; in mergeFrom() 222 Builder mergeFrom(byte[] data, int off, int len) throws InvalidProtocolBufferException; in mergeFrom() 231 throws InvalidProtocolBufferException; in mergeFrom() 240 throws InvalidProtocolBufferException; in mergeFrom()
|
D | GeneratedMessageLite.java | 434 throws InvalidProtocolBufferException { in mergeFrom() 440 } catch (InvalidProtocolBufferException e) { in mergeFrom() 443 throw InvalidProtocolBufferException.truncatedMessage(); in mergeFrom() 453 throws InvalidProtocolBufferException { in mergeFrom() 1360 } catch (InvalidProtocolBufferException e) { in readResolve() 1387 } catch (InvalidProtocolBufferException e) { in readResolveFallback() 1509 throws InvalidProtocolBufferException { in parsePartialFrom() 1516 throws InvalidProtocolBufferException { in parsePartialFrom() 1529 throws InvalidProtocolBufferException { in parsePartialFrom() 1539 if (e.getCause() instanceof InvalidProtocolBufferException) { in parsePartialFrom() [all …]
|
D | Message.java | 246 Builder mergeFrom(ByteString data) throws InvalidProtocolBufferException; in mergeFrom() 250 throws InvalidProtocolBufferException; in mergeFrom() 253 Builder mergeFrom(byte[] data) throws InvalidProtocolBufferException; in mergeFrom() 256 Builder mergeFrom(byte[] data, int off, int len) throws InvalidProtocolBufferException; in mergeFrom() 260 throws InvalidProtocolBufferException; in mergeFrom() 264 throws InvalidProtocolBufferException; in mergeFrom()
|
D | AbstractMessageLite.java | 183 public BuilderType mergeFrom(final ByteString data) throws InvalidProtocolBufferException { in mergeFrom() 189 } catch (InvalidProtocolBufferException e) { in mergeFrom() 199 throws InvalidProtocolBufferException { in mergeFrom() 205 } catch (InvalidProtocolBufferException e) { in mergeFrom() 213 public BuilderType mergeFrom(final byte[] data) throws InvalidProtocolBufferException { in mergeFrom() 219 throws InvalidProtocolBufferException { in mergeFrom() 225 } catch (InvalidProtocolBufferException e) { in mergeFrom() 234 throws InvalidProtocolBufferException { in mergeFrom() 244 throws InvalidProtocolBufferException { in mergeFrom() 250 } catch (InvalidProtocolBufferException e) { in mergeFrom()
|
D | Utf8.java | 329 throws InvalidProtocolBufferException { in decodeUtf8() 339 throws InvalidProtocolBufferException { in decodeUtf8() 617 throws InvalidProtocolBufferException; in decodeUtf8() 625 throws InvalidProtocolBufferException { in decodeUtf8() 637 throws InvalidProtocolBufferException; in decodeUtf8Direct() 644 throws InvalidProtocolBufferException { in decodeUtf8Default() 686 throw InvalidProtocolBufferException.invalidUtf8(); in decodeUtf8Default() 692 throw InvalidProtocolBufferException.invalidUtf8(); in decodeUtf8Default() 702 throw InvalidProtocolBufferException.invalidUtf8(); in decodeUtf8Default() 956 String decodeUtf8(byte[] bytes, int index, int size) throws InvalidProtocolBufferException { in decodeUtf8() [all …]
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | ArrayDecodersTest.java | 55 } catch (InvalidProtocolBufferException expected) { in testException_decodeString() 63 } catch (InvalidProtocolBufferException expected) { in testException_decodeStringRequireUtf8() 71 } catch (InvalidProtocolBufferException expected) { in testException_decodeBytes() 85 } catch (InvalidProtocolBufferException expected) { in testException_decodeStringList_first() 99 } catch (InvalidProtocolBufferException expected) { in testException_decodeStringList_second() 113 } catch (InvalidProtocolBufferException expected) { in testException_decodeStringListRequireUtf8_first() 127 } catch (InvalidProtocolBufferException expected) { in testException_decodeStringListRequireUtf8_second() 141 } catch (InvalidProtocolBufferException expected) { in testException_decodeBytesList_first() 155 } catch (InvalidProtocolBufferException expected) { in testException_decodeBytesList_second() 169 } catch (InvalidProtocolBufferException expected) { in testException_decodeUnknownField() [all …]
|
D | CodedInputStreamTest.java | 226 private void assertReadVarintFailure(InvalidProtocolBufferException expected, byte[] data) in assertReadVarintFailure() 233 } catch (InvalidProtocolBufferException e) { in assertReadVarintFailure() 240 } catch (InvalidProtocolBufferException e) { in assertReadVarintFailure() 249 } catch (InvalidProtocolBufferException e) { in assertReadVarintFailure() 298 InvalidProtocolBufferException.malformedVarint(), in testReadVarint() 300 assertReadVarintFailure(InvalidProtocolBufferException.truncatedMessage(), bytes(0x80)); in testReadVarint() 532 } catch (InvalidProtocolBufferException e) { in testReadMaliciouslyLargeBlob() 573 } catch (InvalidProtocolBufferException e) { in testParseMessagesOver2G() 645 } catch (InvalidProtocolBufferException e) { in testMaliciousRecursion() 654 } catch (InvalidProtocolBufferException e) { in testMaliciousRecursion() [all …]
|
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | JsonFormat.java | 64 import com.google.protobuf.InvalidProtocolBufferException; 379 public String print(MessageOrBuilder message) throws InvalidProtocolBufferException { in print() 384 } catch (InvalidProtocolBufferException e) { in print() 473 public void merge(String json, Message.Builder builder) throws InvalidProtocolBufferException { in merge() 530 Descriptor getDescriptorForTypeUrl(String typeUrl) throws InvalidProtocolBufferException { in getDescriptorForTypeUrl() 879 throw new InvalidProtocolBufferException("Invalid Any type."); in printAny() 886 throw new InvalidProtocolBufferException("Cannot find type for url: " + typeUrl); in printAny() 915 throw new InvalidProtocolBufferException("Invalid Wrapper type."); in printWrapper() 953 throw new InvalidProtocolBufferException("Invalid Struct type."); in printStruct() 971 throw new InvalidProtocolBufferException("Invalid Value type."); in printValue() [all …]
|
/third_party/protobuf/conformance/ |
D | ConformanceJava.java | 35 import com.google.protobuf.InvalidProtocolBufferException; 104 throws InvalidProtocolBufferException { in decode() 116 } catch (InvalidProtocolBufferException e) { in decode() 124 } catch (InvalidProtocolBufferException e) { in decode() 134 } catch (InvalidProtocolBufferException e) { in decode() 145 } catch (InvalidProtocolBufferException e) { in decode() 152 } catch (InvalidProtocolBufferException e) { in decode() 164 throws InvalidProtocolBufferException { in parseBinary() 166 ArrayList <InvalidProtocolBufferException> exceptions = in parseBinary() 167 new ArrayList <InvalidProtocolBufferException>(); in parseBinary() [all …]
|
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | JsonParserTest.cs | 71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict() 198 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited() 214 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited() 270 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid() 291 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt32_Invalid() 314 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt64_Invalid() 335 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt64_Invalid() 388 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToDouble_Invalid() 418 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToFloat_Invalid() 445 [TestCase("1.5", typeof(InvalidProtocolBufferException))] [all …]
|
D | CodedInputStreamTest.cs | 96 … private static void AssertReadVarintFailure(InvalidProtocolBufferException expected, byte[] data) in AssertReadVarintFailure() 99 … var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32()); in AssertReadVarintFailure() 103 … exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64()); in AssertReadVarintFailure() 107 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure() 141 InvalidProtocolBufferException.MalformedVarint(), in ReadVarint() 145 InvalidProtocolBufferException.TruncatedMessage(), in ReadVarint() 284 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob() 321 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(beyondRe… in MaliciousRecursion() 324 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion() 334 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input)); in SizeLimit() [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | JsonParserTest.cs | 73 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict() 200 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited() 216 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited() 272 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid() 293 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt32_Invalid() 316 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt64_Invalid() 337 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt64_Invalid() 390 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToDouble_Invalid() 420 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToFloat_Invalid() 447 [TestCase("1.5", typeof(InvalidProtocolBufferException))] [all …]
|
D | CodedInputStreamTest.cs | 119 … private static void AssertReadVarintFailure(InvalidProtocolBufferException expected, byte[] data) in AssertReadVarintFailure() 122 … var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32()); in AssertReadVarintFailure() 126 … exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64()); in AssertReadVarintFailure() 136 catch (InvalidProtocolBufferException ex) in AssertReadVarintFailure() 149 catch (InvalidProtocolBufferException ex) in AssertReadVarintFailure() 156 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure() 202 InvalidProtocolBufferException.MalformedVarint(), in ReadVarint() 206 InvalidProtocolBufferException.TruncatedMessage(), in ReadVarint() 383 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob() 403 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadBlobGreaterThanCurrentLimit() [all …]
|