HomeSort by relevance Sort by last modified time
    Searched full:varint (Results 1 - 25 of 45) sorted by null

1 2

  /external/chromium/sdch/open-vcdiff/src/
varint_bigendian.h 29 // the ninth byte of the varint does not have a continuation bit, but instead
68 // Example: to parse a 32-bit integer value stored as a big-endian varint, use
82 // Returns the maximum number of bytes needed to store a varint
86 // Attempts to parse a big-endian varint from a prefix of the bytes
89 // If a parsed varint would exceed the maximum value of
91 // If parsing a varint at *ptr (without exceeding the capacity of
106 // Appends the varint representation of "value" to "*s".
110 // Appends the varint representation of "value" to output_string.
addrcache_test.cc 276 ManualEncodeByte(0xFE); // SAME mode uses a byte, not a Varint
303 ExpectDecodedSizeInBytes(sizeof(unsigned char)); // a byte, not a Varint
462 // A Varint should contain at most 9 bytes that have their continuation bit
464 // bit 7 set is not a valid Varint. Try to parse such a string as a Varint
480 // If only part of a Varint appears in the data to be decoded,
482 // which means that the Varint *may* be valid if there is more
498 // and verify that the Varint is now valid.
499 ManualEncodeByte(0x01); // End the Varint with an additional byte
decodetable.cc 94 // Parse the size as a Varint in the instruction stream.
105 break; // Successfully parsed Varint
headerparser_test.cc 182 EXPECT_FALSE(parser->ParseInt32("incomplete Varint", &incomplete_int32));
196 EXPECT_FALSE(parser->ParseInt32("invalid Varint", &invalid_int32));
encodetable.h 163 // by one or two Varint values representing the size parameters
174 // A series of Varint addresses used for COPY instructions.
175 // For the SAME mode, a byte value is stored instead of a Varint.
varint_bigendian_test.cc 225 // Varint, it shouldn't have the highest bits set and so can't begin with FF.
277 // This example is taken from the Varint description in RFC 3284, section 2.
  /external/protobuf/java/src/main/java/com/google/protobuf/
UnknownFieldSet.java 405 * Convenience method for merging a new field containing a single varint
678 /** Get the list of varint values for this field. */
679 public List<Long> getVarintList() { return varint; }
720 varint,
733 for (final long value : varint) {
756 for (final long value : varint) {
800 private List<Long> varint; field in class:UnknownFieldSet.Field
830 if (result.varint == null) {
831 result.varint = Collections.emptyList();
833 result.varint = Collections.unmodifiableList(result.varint)
    [all...]
InvalidProtocolBufferException.java 37 * e.g. it contains a malformed varint or a negative byte length.
64 "CodedInputStream encountered a malformed varint.");
CodedInputStream.java 314 * Read a raw Varint from the stream. If larger than 32 bits, discard the
352 * Reads a varint from the input one byte at a time, so that it does not
353 * read any bytes after the end of the varint. If you simply wrapped the
355 * then you would probably end up reading past the end of the varint since
402 /** Read a raw Varint from the stream. */
451 * into values that can be efficiently encoded with varint. (Otherwise,
452 * negative values must be sign-extended to 64 bits to be varint encoded,
465 * into values that can be efficiently encoded with varint. (Otherwise,
466 * negative values must be sign-extended to 64 bits to be varint encoded,
CodedOutputStream.java 921 * Encode and write a varint. {@code value} is treated as
937 * Compute the number of bytes that would be needed to encode a varint.
    [all...]
  /external/qemu/
varint.c 13 #include "varint.h"
27 // Encodes the 64-bit value "value" using the varint encoding. The varint
84 // Encodes the 35-bit signed value "value" using the varint encoding.
85 // The varint encoding uses a prefix followed by some data bits. The
  /external/protobuf/src/google/protobuf/
unknown_field_set_unittest.cc 132 TEST_F(UnknownFieldSetTest, Varint) {
137 EXPECT_EQ(all_fields_.optional_int32(), field->varint());
178 EXPECT_EQ(all_fields_.optionalgroup().a(), nested_field.varint());
321 EXPECT_EQ(654321, destination.unknown_fields().field(0).varint());
429 EXPECT_EQ(5, unknown_fields.field(0).varint());
433 EXPECT_EQ(4, unknown_fields.field(1).varint());
437 EXPECT_EQ(6, unknown_fields.field(2).varint());
459 EXPECT_EQ(5, unknown_fields.field(0).varint());
463 EXPECT_EQ(4, unknown_fields.field(1).varint());
467 EXPECT_EQ(6, unknown_fields.field(2).varint());
    [all...]
wire_format_unittest.cc 697 // The byte is a valid varint, but not a valid tag (zero).
700 // The byte is a malformed varint.
706 // The byte is a valid varint but not a valid tag (bad wire type).
719 // The byte is a valid varint, but not a valid tag (zero).
722 // The byte is a malformed varint.
728 // The byte is a valid varint but not a valid tag (bad wire type).
743 // The byte is a valid varint, but not a valid tag (zero).
746 // The byte is a malformed varint.
752 // The byte is a valid varint but not a valid tag (bad wire type).
wire_format_lite.h 79 // field). Each tag is encoded as a varint. The lower bits of the tag
219 // number and varint-encode it, it will always take 10 bytes, defeating
220 // the purpose of varint. So, for the "sint32" and "sint64" field types,
515 // saves it as an unknown varint.
575 // effectively used with varint encoding.
577 // varint operates on unsigned integers, encoding smaller numbers into
583 // encoded values, making them appropriate for encoding using varint.
message_unittest.cc 250 // The byte is a valid varint, but not a valid tag (zero).
253 // The byte is a malformed varint.
  /external/protobuf/java/src/main/java/com/google/protobuf/micro/
InvalidProtocolBufferMicroException.java 37 * e.g. it contains a malformed varint or a negative byte length.
64 "CodedInputStream encountered a malformed varint.");
CodedInputStreamMicro.java 288 * Read a raw Varint from the stream. If larger than 32 bits, discard the
326 * Reads a varint from the input one byte at a time, so that it does not
327 * read any bytes after the end of the varint. If you simply wrapped the
329 * then you would probably end up reading past the end of the varint since
358 /** Read a raw Varint from the stream. */
407 * into values that can be efficiently encoded with varint. (Otherwise,
408 * negative values must be sign-extended to 64 bits to be varint encoded,
421 * into values that can be efficiently encoded with varint. (Otherwise,
422 * negative values must be sign-extended to 64 bits to be varint encoded,
CodedOutputStreamMicro.java 885 * Encode and write a varint. {@code value} is treated as
901 * Compute the number of bytes that would be needed to encode a varint.
913 /** Encode and write a varint. */
926 /** Compute the number of bytes that would be needed to encode a varint. */
    [all...]
  /external/protobuf/python/google/protobuf/internal/
wire_format.py 44 # We use the least-significant TAG_TYPE_BITS bits of the varint-encoded
102 effectively used with varint encoding. See wire_format.h for
233 """Returns the number of bytes required to serialize a single varint
decoder.py 95 """Return an encoder for a basic varint value (does not include tag).
117 raise _DecodeError('Too many bytes when decoding varint.')
141 raise _DecodeError('Too many bytes when decoding varint.')
158 us to trade some work that would be done in pure-python (decoding a varint)
160 In a low-level language it would be much cheaper to decode the varint and
554 """Skip a varint value. Returns the new position."""
encoder.py 74 """Compute the size of a varint value."""
88 """Compute the size of a signed varint value."""
335 """Return an encoder for a basic varint value (does not include tag)."""
351 """Return an encoder for a basic signed varint value (does not include
374 """Encode the given integer as a varint and return the bytes. This is only
  /sdk/emulator/qtools/
decoder.cpp 11 // a varint-encoded object to the length (in bytes) of that object.
32 // a varint-encoded object to the initial data bits for that object.
186 // Decode a varint-encoded object starting at the current position in
188 // A varint-encoded object has an initial prefix that specifies how many
  /external/protobuf/src/google/protobuf/io/
coded_stream.h 38 // formats. In particular, these implement the varint encoding for
50 // // string is composed of a varint giving the length followed by the raw
92 // For those who are interested, varint encoding is defined as follows:
105 // In theory, varint could be used to encode integers of any length.
136 // Class which reads and decodes binary data which is composed of varint-
210 // Read an unsigned integer with Varint encoding, truncating to 32 bits.
214 // Read an unsigned integer with Varint encoding.
228 // the varint. For best performance, use a compile-time constant as the
235 // responsible for ensuring that the buffer is large enough to read a varint
504 // then optimize for the case when the varint fits within the current buffe
    [all...]
coded_stream.cc 304 // We have overrun the maximum size of a varint (10 bytes). Assume
326 // Optimization: If the varint ends at exactly the end of the buffer,
369 // Optimization: If the varint ends at exactly the end of the buffer,
420 // Optimization: If the varint ends at exactly the end of the buffer,
444 // We have overrun the maximum size of a varint (10 bytes). The data
  /external/protobuf/java/src/test/java/com/google/protobuf/
UnknownFieldSetTest.java 78 // Original field is not a varint, so use a varint.
81 // Original field *is* a varint, so use something else.

Completed in 288 milliseconds

1 2