Package com.google.common.geometry
Class UintVectorCoder
java.lang.Object
com.google.common.geometry.UintVectorCoder
- All Implemented Interfaces:
S2Coder<PrimitiveArrays.Longs>
An encoder/decoder of
PrimitiveArrays.Longs
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
(package private) static final UintVectorCoder
An instance of anUintVectorCoder
which encodes/decodesuint32
s.(package private) static final UintVectorCoder
An instance of anUintVectorCoder
which encodes/decodesuint64
s. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode
(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor) void
encode
(PrimitiveArrays.Longs values, OutputStream output) Encodesvalue
tooutput
.
-
Field Details
-
UINT32
An instance of anUintVectorCoder
which encodes/decodesuint32
s. -
UINT64
An instance of anUintVectorCoder
which encodes/decodesuint64
s. -
typeBytes
private final int typeBytes
-
-
Constructor Details
-
UintVectorCoder
private UintVectorCoder(int typeBytes)
-
-
Method Details
-
encode
Description copied from interface:S2Coder
Encodesvalue
tooutput
.- Specified by:
encode
in interfaceS2Coder<PrimitiveArrays.Longs>
- Throws:
IOException
-
decode
Description copied from interface:S2Coder
Decodes a value of typeS2Coder
fromdata
starting atcursor.position
.cursor.position
is updated to the position of the first byte indata
following the encoded value.- Specified by:
decode
in interfaceS2Coder<PrimitiveArrays.Longs>
-