public static void Marshal(ReplicatedTokenRequest content, ByteBuf buffer) { buffer.writeInt(content.Type().ordinal()); StringMarshal.marshal(buffer, content.TokenName()); buffer.writeInt(content.CommandBytes().Length); buffer.writeBytes(content.CommandBytes()); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public static void marshal(ReplicatedTokenRequest content, org.neo4j.storageengine.api.WritableChannel channel) throws java.io.IOException public static void Marshal(ReplicatedTokenRequest content, WritableChannel channel) { channel.PutInt(content.Type().ordinal()); StringMarshal.marshal(channel, content.TokenName()); channel.PutInt(content.CommandBytes().Length); channel.Put(content.CommandBytes(), content.CommandBytes().Length); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void marshal(ClientConnectorAddresses connectorUris, org.neo4j.storageengine.api.WritableChannel channel) throws java.io.IOException //JAVA TO C# CONVERTER NOTE: Members cannot have the same name as their enclosing type: public override void MarshalConflict(ClientConnectorAddresses connectorUris, WritableChannel channel) { channel.PutInt(connectorUris.connectorUris.size()); foreach (ConnectorUri uri in connectorUris) { StringMarshal.marshal(channel, uri.Scheme.name()); StringMarshal.marshal(channel, uri.SocketAddress.Hostname); channel.PutInt(uri.SocketAddress.Port); } }
public override void Handle(SwitchOverRequest switchOverRequest) { Out.writeInt(3); StringMarshal.marshal(Out, switchOverRequest.ProtocolName()); Out.writeInt(switchOverRequest.Version()); Out.writeInt(switchOverRequest.ModifierProtocols().Count); switchOverRequest.ModifierProtocols().ForEach(pair => { StringMarshal.marshal(Out, pair.first()); StringMarshal.marshal(Out, pair.other()); }); }
internal virtual void EncodeProtocolResponse <U>(BaseProtocolResponse <U> protocolResponse, System.Action <ByteBuf, U> writer) where U : IComparable <U> { Out.writeInt(protocolResponse.StatusCode().codeValue()); StringMarshal.marshal(Out, protocolResponse.ProtocolName()); writer(Out, protocolResponse.Version()); }
public override void Handle(InitialMagicMessage magicMessage) { Out.writeInt(InitialMagicMessage.MESSAGE_CODE); StringMarshal.marshal(Out, magicMessage.Magic()); }
internal virtual void EncodeProtocolRequest <U>(BaseProtocolRequest <U> protocolRequest, System.Action <ByteBuf, U> writer) where U : IComparable <U> { StringMarshal.marshal(Out, protocolRequest.ProtocolName()); Out.writeInt(protocolRequest.Versions().Count); protocolRequest.Versions().forEach(version => writer(Out, version)); }