public static final class Serializers.IntSerializer extends Object
| Constructor and Description |
|---|
IntSerializer() |
| Modifier and Type | Method and Description |
|---|---|
int |
deserialize(byte[] bytes)
Deserializes an integer value from the first 4 bytes of the given array.
|
int |
deserialize(byte[] bytes,
int offset)
Deserializes an integer value from 4 bytes of the given array starting at the given location.
|
byte[] |
serialize(int value)
Serializes the given integer to 4 bytes.
|
void |
serialize(int value,
byte[] bytes,
int offset)
Serializes the given integer to 4 bytes in the given byte array starting from the given offset.
|
public byte[] serialize(int value)
public void serialize(int value,
byte[] bytes,
int offset)
throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsExceptionpublic int deserialize(byte[] bytes)
throws ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsExceptionpublic int deserialize(byte[] bytes,
int offset)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.