Interface Message

    • Field Detail

      • MAX_SIZE

        static final int MAX_SIZE
        Maximum size of a Bitcoin P2P Message (32 MB)
        See Also:
        Constant Field Values
    • Method Detail

      • messageSize

        int messageSize()
        Return the size of the serialized message. Note that if the message was deserialized from a payload, this size can differ from the size of the original payload.
        Returns:
        size of this object when serialized (in bytes)
      • getMessageSize

        @Deprecated
        default int getMessageSize()
        Deprecated.
      • serialize

        byte[] serialize()
        Serialize this message to a byte array that conforms to the Bitcoin wire protocol.
        Returns:
        serialized data in Bitcoin protocol format
      • bitcoinSerialize

        @Deprecated
        default byte[] bitcoinSerialize()
        Deprecated.
      • unsafeBitcoinSerialize

        @Deprecated
        default byte[] unsafeBitcoinSerialize()
        Deprecated.