Java Code Examples for net.bither.bitherj.utils.Utils#int64ToByteStreamLE()

The following examples show how to use net.bither.bitherj.utils.Utils#int64ToByteStreamLE() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Out.java    From bitherj with Apache License 2.0 5 votes vote down vote up
@Override
protected void bitcoinSerializeToStream(OutputStream stream) throws IOException {
    checkNotNull(outScript);
    Utils.int64ToByteStreamLE(outValue, stream);
    // TODO: Move script serialization into the Script class, where it belongs.
    stream.write(new VarInt(outScript.length).encode());
    stream.write(outScript);
}
 
Example 2
Source File: PongMessage.java    From bitherj with Apache License 2.0 4 votes vote down vote up
public void bitcoinSerializeToStream(OutputStream stream) throws IOException {
    Utils.int64ToByteStreamLE(nonce, stream);
}
 
Example 3
Source File: PingMessage.java    From bitherj with Apache License 2.0 4 votes vote down vote up
public void bitcoinSerializeToStream(OutputStream stream) throws IOException {
    if (hasNonce)
        Utils.int64ToByteStreamLE(nonce, stream);
}