public class PBWireUnsignedByteMarkerHelper extends AbstractPBWireByteMarkerHelper
| Constructor and Description |
|---|
PBWireUnsignedByteMarkerHelper() |
| Modifier and Type | Method and Description |
|---|---|
int |
bytesToInteger(byte[] marker)
Convert the marker byte array to an integer where each item is part of byte shifted integer
The byte array has been restricted to the signed portion to accommodate clients
that can only process strings (ascii being 0-127).
|
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 - big endian byte array holding the valueCopyright © 2017. All rights reserved.