public override void write(Object obj, BOutput bout1, long version) { BOutputBin bout = ((BOutputBin)bout1); BRemote remote = (BRemote)obj; BTargetId targetId = remote.BRemote_getTargetId(); targetId.write(bout.bbuf.getBuffer(), bout1.header.bversion); }
public void write(ByteBuffer buf) { buf.putInt(MAGIC_BINARY_STREAM); buf.putInt(error); buf.putInt(flags); if ((flags & FLAG_BYPS_VERSION) != 0) { buf.putInt(bversion); } buf.putLong(version); targetId.write(buf, bversion); buf.putLong(messageId); if (bversion >= BYPS_VERSION_WITH_SESSIONID) { BTargetId.writeSessionId(buf, sessionId); } }