public ORecordId fromStream(final byte[] iBuffer) { if (iBuffer != null) { clusterId = OBinaryProtocol.bytes2short(iBuffer, 0); clusterPosition = OClusterPositionFactory.INSTANCE.fromStream(iBuffer, OBinaryProtocol.SIZE_SHORT); } return this; }
public ORecordId fromStream(final InputStream iStream) throws IOException { clusterId = OBinaryProtocol.bytes2short(iStream); clusterPosition = OClusterPositionFactory.INSTANCE.fromStream(iStream); return this; }