Public Member Functions | Private Attributes | Static Private Attributes | List of all members
com.google.protobuf.ExperimentalTestDataProvider.Varint64Provider Class Reference

Public Member Functions

long getLong ()
 
long getLong ()
 

Private Attributes

int listIndex
 
int sampleIndex
 
int samplesTaken
 

Static Private Attributes

static final int[] NUM_SAMPLES = {4, 2, 2, 1, 1, 1, 1, 2, 2, 4}
 
static final long[][] VALUES
 

Detailed Description

Iterator over integer values. Uses a simple distribution over 64-bit varints (generally favoring smaller values).

Definition at line 141 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ExperimentalTestDataProvider.java.

Member Function Documentation

◆ getLong() [1/2]

long com.google.protobuf.ExperimentalTestDataProvider.Varint64Provider.getLong ( )
inline

◆ getLong() [2/2]

long com.google.protobuf.ExperimentalTestDataProvider.Varint64Provider.getLong ( )
inline

Member Data Documentation

◆ listIndex

int com.google.protobuf.ExperimentalTestDataProvider.Varint64Provider.listIndex
private

The index into the VALUES array that identifies the list of samples currently being iterated over.

Definition at line 164 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ExperimentalTestDataProvider.java.

◆ NUM_SAMPLES

final int [] com.google.protobuf.ExperimentalTestDataProvider.Varint64Provider.NUM_SAMPLES = {4, 2, 2, 1, 1, 1, 1, 2, 2, 4}
staticprivate

Number of samples that should be taken from each value array.

Definition at line 158 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ExperimentalTestDataProvider.java.

◆ sampleIndex

int com.google.protobuf.ExperimentalTestDataProvider.Varint64Provider.sampleIndex
private

The index of the next sample within a list.

Definition at line 167 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ExperimentalTestDataProvider.java.

◆ samplesTaken

int com.google.protobuf.ExperimentalTestDataProvider.Varint64Provider.samplesTaken
private

The number of successive samples that have been taken from the current list.

Definition at line 170 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ExperimentalTestDataProvider.java.

◆ VALUES

final long [][] com.google.protobuf.ExperimentalTestDataProvider.Varint64Provider.VALUES
staticprivate
Initial value:
= {
new long[] {1, 50, 100, 127},
new long[] {128, 500, 10000, 16383},
new long[] {16384, 50000, 1000000, 2097151},
new long[] {2097152, 10000000, 200000000, 268435455},
new long[] {268435456, 0x30000000, 0x7FFFFFFF, 34359738367L},
new long[] {34359738368L, 2000000000000L, 4000000000000L, 4398046511103L},
new long[] {4398046511104L, 200000000000000L, 500000000000000L, 562949953421311L},
new long[] {0x4000000000000L, 0x5000000000000L, 0x6000000000000L, 0x0FFFFFFFFFFFFFFL},
new long[] {0x100000000000000L, 0x3FFFFFFFFFFFFFFFL, 0x5FFFFFFFFFFFFFFL, 0x7FFFFFFFFFFFFFFFL},
new long[] {
0xFFFFFFFFFFFFFFFFL, 0xFFFFFFFFFFFFFFFFL, 0xFFFFFFFFFFFFFFFFL, 0xFFFFFFFFFFFFFFFFL
}
}

Definition at line 142 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ExperimentalTestDataProvider.java.


The documentation for this class was generated from the following file:
L
lua_State * L
Definition: upb/upb/bindings/lua/main.c:35


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:04