//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public static void marshal(org.neo4j.storageengine.api.WritableChannel writableChannel, ByteArrayReplicatedTransaction replicatedTransaction) throws java.io.IOException public static void Marshal(WritableChannel writableChannel, ByteArrayReplicatedTransaction replicatedTransaction) { int length = replicatedTransaction.TxBytes.Length; writableChannel.PutInt(length); writableChannel.Put(replicatedTransaction.TxBytes, length); }
public override TransactionRepresentation Extract(ByteArrayReplicatedTransaction replicatedTransaction) { ByteBuf buffer = Unpooled.wrappedBuffer(replicatedTransaction.TxBytes); NetworkReadableClosableChannelNetty4 channel = new NetworkReadableClosableChannelNetty4(buffer); return(Read(channel)); }
public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } ByteArrayReplicatedTransaction that = ( ByteArrayReplicatedTransaction )o; return(Arrays.Equals(_txBytes, that._txBytes)); }
public static ChunkedInput <ByteBuf> Encode(ByteArrayReplicatedTransaction byteArrayReplicatedTransaction) { return(new ByteArrayChunkedEncoder(byteArrayReplicatedTransaction.TxBytes)); }