public BInput(BTransport transport, BMessageHeader responseHeader, BRegistry registry) { this.header = responseHeader; this.transport = transport; this.registry = registry; this.idMap = transport.getApiDesc().uniqueObjects ? null : new Dictionary<int, Object>(); }
public BInput(BTransport transport, BMessageHeader responseHeader, BRegistry registry) { this.header = responseHeader; this.transport = transport; this.registry = registry; this.idMap = transport.getApiDesc().uniqueObjects ? null : new Dictionary <int, Object>(); }
public BOutput(BTransport transport, BRegistry registry, BMessageHeader requestHeader) { this.objMap = transport.getApiDesc().uniqueObjects ? null : new BObjMap(); this.header = requestHeader; this.header.targetId = transport.getTargetId(); this.header.sessionId = transport.getSessionId(); this.transport = transport; this.registry = registry; this.streams = null; }
public BRegistry getRegistry(BBinaryModel bmodel) { BRegistry ret = null; if (!registries.TryGetValue(bmodel, out ret)) { throw new InvalidOperationException("No registry for protocol=" + bmodel); } return(ret); }
public BOutput(BTransport transport, BRegistry registry, int streamHeaderMagic, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder) { this.objMap = transport.getApiDesc().uniqueObjects ? null : new BObjMap(); this.header = new BMessageHeader(streamHeaderMagic, negotiatedBypsVersion, negotiatedVersion, negotiatedByteOrder, transport.getWire().makeMessageId()); this.header.targetId = transport.getTargetId(); this.header.sessionId = transport.getSessionId(); this.transport = transport; this.registry = registry; this.streams = null; }
public BApiDescriptor addRegistry(BRegistry registry) { registries[registry.bmodel] = registry; return this; }
public BInputBin(BTransport transport, BMessageHeader responseHeader, ByteBuffer buf, BRegistry registry) : base(transport, responseHeader, registry) { this.bbuf = (BBufferBin)BBuffer.create(BBinaryModel.MEDIUM, buf); }
public BApiDescriptor addRegistry(BRegistry registry) { registries[registry.bmodel] = registry; return(this); }