Class Encoder
- java.lang.Object
-
- com.alibaba.graphscope.interactive.client.utils.Encoder
-
public class Encoder extends Object
-
-
Constructor Summary
Constructors Constructor Description Encoder(byte[] bs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
put_byte(byte value)
void
put_bytes(byte[] bytes)
void
put_double(double value)
void
put_int(int value)
void
put_long(long value)
void
put_string(String value)
static int
serialize_byte(byte[] bytes, int offset, byte value)
static int
serialize_bytes(byte[] bytes, int offset, byte[] value)
static int
serialize_double(byte[] bytes, int offset, double value)
static int
serialize_int(byte[] bytes, int offset, int value)
static int
serialize_long(byte[] bytes, int offset, long value)
-
-
-
Method Detail
-
serialize_long
public static int serialize_long(byte[] bytes, int offset, long value)
-
serialize_double
public static int serialize_double(byte[] bytes, int offset, double value)
-
serialize_int
public static int serialize_int(byte[] bytes, int offset, int value)
-
serialize_byte
public static int serialize_byte(byte[] bytes, int offset, byte value)
-
serialize_bytes
public static int serialize_bytes(byte[] bytes, int offset, byte[] value)
-
put_int
public void put_int(int value)
-
put_byte
public void put_byte(byte value)
-
put_long
public void put_long(long value)
-
put_double
public void put_double(double value)
-
put_bytes
public void put_bytes(byte[] bytes)
-
put_string
public void put_string(String value)
-
-