public class ByteConverter extends Object
Modifier and Type | Method and Description |
---|---|
static float |
float4(byte[] bytes,
int idx)
Parses a float value from the byte array.
|
static void |
float4(byte[] target,
int idx,
float value)
Encodes a int value to the byte array.
|
static double |
float8(byte[] bytes,
int idx)
Parses a double value from the byte array.
|
static void |
float8(byte[] target,
int idx,
double value)
Encodes a int value to the byte array.
|
static short |
int2(byte[] bytes,
int idx)
Parses a short value from the byte array.
|
static void |
int2(byte[] target,
int idx,
int value)
Encodes a int value to the byte array.
|
static int |
int4(byte[] bytes,
int idx)
Parses an int value from the byte array.
|
static void |
int4(byte[] target,
int idx,
int value)
Encodes a int value to the byte array.
|
static long |
int8(byte[] bytes,
int idx)
Parses a long value from the byte array.
|
static void |
int8(byte[] target,
int idx,
long value)
Encodes a long value to the byte array.
|
public static long int8(byte[] bytes, int idx)
bytes
- The byte array to parse.idx
- The starting index of the parse in the byte array.public static int int4(byte[] bytes, int idx)
bytes
- The byte array to parse.idx
- The starting index of the parse in the byte array.public static short int2(byte[] bytes, int idx)
bytes
- The byte array to parse.idx
- The starting index of the parse in the byte array.public static float float4(byte[] bytes, int idx)
bytes
- The byte array to parse.idx
- The starting index of the parse in the byte array.public static double float8(byte[] bytes, int idx)
bytes
- The byte array to parse.idx
- The starting index of the parse in the byte array.public static void int8(byte[] target, int idx, long value)
target
- The byte array to encode to.idx
- The starting index in the byte array.value
- The value to encode.public static void int4(byte[] target, int idx, int value)
target
- The byte array to encode to.idx
- The starting index in the byte array.value
- The value to encode.public static void int2(byte[] target, int idx, int value)
target
- The byte array to encode to.idx
- The starting index in the byte array.value
- The value to encode.public static void float4(byte[] target, int idx, float value)
target
- The byte array to encode to.idx
- The starting index in the byte array.value
- The value to encode.public static void float8(byte[] target, int idx, double value)
target
- The byte array to encode to.idx
- The starting index in the byte array.value
- The value to encode.Copyright © 2016 PostgreSQL Global Development Group. All rights reserved.