コード例 #1
0
        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());
        }
コード例 #2
0
//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);
        }