OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:VarintBE
(Results
1 - 14
of
14
) sorted by null
/external/chromium_org/sdch/open-vcdiff/src/
varint_bigendian.h
48
//
VarintBE
<SignedIntegerType>::kMaxBytes is treated
65
// Objects of type
VarintBE
should not be instantiated. The class is a
69
// int32_t value =
VarintBE
<int32_t>::Parse(&ptr, limit);
75
class
VarintBE
{ // BE stands for Big-Endian
124
VarintBE
();
125
VarintBE
(const
VarintBE
&); // NOLINT
126
void operator=(const
VarintBE
&);
varint_bigendian.cc
26
template<> const int32_t
VarintBE
<int32_t>::kMaxVal = 0x7FFFFFFF;
27
template<> const int64_t
VarintBE
<int64_t>::kMaxVal = 0x7FFFFFFFFFFFFFFFULL;
38
SignedIntegerType
VarintBE
<SignedIntegerType>::Parse(const char* limit,
61
int
VarintBE
<SignedIntegerType>::EncodeInternal(SignedIntegerType v,
65
<< " passed to
VarintBE
::EncodeInternal,"
84
int
VarintBE
<SignedIntegerType>::Encode(SignedIntegerType v, char* ptr) {
92
void
VarintBE
<SignedIntegerType>::AppendToString(SignedIntegerType value,
100
void
VarintBE
<SignedIntegerType>::AppendToOutputString(
110
int
VarintBE
<SignedIntegerType>::Length(SignedIntegerType v) {
113
<< " passed to
VarintBE
::Length,
[
all
...]
headerparser_test.cc
68
EXPECT_EQ(prior_position +
VarintBE
<int32_t>::Length(decoded_integer),
78
EXPECT_EQ(prior_position +
VarintBE
<int64_t>::Length(decoded_integer),
88
EXPECT_EQ(prior_position +
VarintBE
<int64_t>::Length(decoded_checksum),
118
VarintBE
<int32_t>::AppendToString(random_integer, &encoded_buffer_);
136
VarintBE
<int64_t>::AppendToString(random_integer, &encoded_buffer_);
155
VarintBE
<int64_t>::AppendToString(random_checksum, &encoded_buffer_);
170
VarintBE
<int64_t>::AppendToString(0xCAFECAFE, &encoded_buffer_);
172
VarintBE
<int32_t>::AppendToString(0x02020202, &encoded_buffer_);
173
VarintBE
<int64_t>::AppendToString(0xCAFECAFE, &encoded_buffer_);
vcdecoder_test.cc
80
char varint_buf[
VarintBE
<int32_t>::kMaxBytes];
81
VarintBE
<int32_t>::Encode(static_cast<int32_t>(strlen(s)), varint_buf);
88
VarintBE
<int32_t>::AppendToString(checksum_as_int32, &delta_window_header_);
90
// This method wouldn't work if adding to the length caused the
VarintBE
93
delta_window_header_[4] +=
VarintBE
<int32_t>::Length(checksum_as_int32);
101
// Write the maximum expressible positive 32-bit
VarintBE
112
// Write a negative 32-bit
VarintBE
(0x80000000) at the given offset
123
// Write a
VarintBE
that has too many continuation bytes
encodetable.cc
266
VarintBE
<int32_t>::AppendToString(encoded_addr, addresses_for_copy_);
280
return
VarintBE
<int32_t>::Length(static_cast<int32_t>(size));
284
VarintBE
<int32_t>::AppendToString(static_cast<int32_t>(size), out);
290
VarintBE
<int32_t>::AppendToOutputString(static_cast<int32_t>(size), out);
307
VarintBE
<int64_t>::Length(static_cast<int64_t>(checksum_));
351
// The checksum is a 32-bit *unsigned* integer.
VarintBE
requires a
353
VarintBE
<int64_t>::AppendToOutputString(static_cast<int64_t>(checksum_),
addrcache_test.cc
77
VarintBE
<VCDAddress>::AppendToString(value, &address_stream_);
88
EXPECT_EQ(expected_size,
VarintBE
<VCDAddress>::Length(expected_value));
89
VCDAddress output_val =
VarintBE
<VCDAddress>::Parse(
285
ExpectDecodedSizeInBytes(
VarintBE
<VCDAddress>::Length(0xCAFE));
291
ExpectDecodedSizeInBytes(
VarintBE
<VCDAddress>::Length(0xCAFE));
297
ExpectDecodedSizeInBytes(
VarintBE
<VCDAddress>::Length(0x1000));
309
ExpectDecodedSizeInBytes(
VarintBE
<VCDAddress>::Length(0xFE));
316
ExpectDecodedSizeInBytes(
VarintBE
<VCDAddress>::Length(0x1000));
353
ExpectDecodedSizeInBytes(
VarintBE
<VCDAddress>::Length(0xCAFE));
358
ExpectDecodedSizeInBytes(
VarintBE
<VCDAddress>::Length(0xCAFE))
[
all
...]
decodetable.cc
95
switch (*size =
VarintBE
<int32_t>::Parse(instructions_and_sizes_end_,
decodetable_test.cc
141
// up to kCodeTableSize
VarintBE
-encoded size values.
168
(1 + (
VarintBE
<VCDAddress>::kMaxBytes));
172
VarintBE
<VCDAddress>::Encode(257, &instructions_and_sizes_[1]);
182
VarintBE
<VCDAddress>::Encode(111, &instructions_and_sizes_[1]);
232
VarintBE
<VCDAddress>::Encode(257, &instructions_and_sizes_[1]);
398
int encoded_size =
VarintBE
<VCDAddress>::Encode(1000 + opcode,
405
int encoded_size =
VarintBE
<VCDAddress>::Encode(1000 + opcode,
headerparser.cc
92
VarintBE
<int32_t>::Parse(parseable_chunk_.End(),
119
VarintBE
<int64_t>::Parse(parseable_chunk_.End(),
addrcache.cc
296
// All modes except SAME mode expect a
VarintBE
as the encoded address
297
int32_t encoded_address =
VarintBE
<int32_t>::Parse(address_stream_end,
varint_bigendian_test.cc
32
: varint_buf_(
VarintBE
<int64_t>::kMaxBytes),
64
typedef
VarintBE
<SignedIntegerType> VarintType;
116
// both
VarintBE
<int32_t> and
VarintBE
<int64_t>.
223
// For a 31-bit non-negative
VarintBE
, the sequence FF FF FF FF is invalid.
236
// For a 63-bit non-negative
VarintBE
, a series of eight FFs is valid, because
vcdiffengine_test.cc
102
const size_t expected_length =
VarintBE
<int32_t>::Length(expected_value);
103
int32_t parsed_value =
VarintBE
<int32_t>::Parse(diff_.data() + diff_.size(),
125
VarintBE
<int32_t>::Parse(diff_.data() + diff_.size(), &new_position);
[
all
...]
vcencoder_test.cc
94
VarintBE
<int32_t>::Parse(delta_data() + delta_size(),
103
VarintBE
<int64_t>::Parse(delta_data() + delta_size(),
[
all
...]
vcdecoder3_test.cc
128
VarintBE
<int32_t>::AppendToString(
669
VarintBE
<int32_t>::AppendToString(
[
all
...]
Completed in 139 milliseconds