public class PBWireSignedByteMarkerHelper extends AbstractPBWireByteMarkerHelper
| Constructor and Description |
|---|
PBWireSignedByteMarkerHelper() |
| Modifier and Type | Method and Description |
|---|---|
int |
bytesToInteger(byte[] marker)
Convert the marker byte array to an integer where each item in marker array is part of byte shifted integer
|
byte[] |
integerToBytesBigEndian(int value)
Convert the integer into a byte array composed of byte shifted parts of the integer.
|
createMessageDelimiter, estimateTotalContentLength, getByteMarkerSize, getDelimiterSize, getMarkerForStartpublic byte[] integerToBytesBigEndian(int value)
integerToBytesBigEndian in interface IPBWireByteMarkerHelperintegerToBytesBigEndian in class AbstractPBWireByteMarkerHelpervalue - the integer to be represented by the returned byte arraypublic int bytesToInteger(byte[] marker)
bytesToInteger in interface IPBWireByteMarkerHelperbytesToInteger in class AbstractPBWireByteMarkerHelpermarker - a byte array in big endian bytes formatCopyright © 2017. All rights reserved.