Class EmptyMessage

    • Constructor Detail

      • EmptyMessage

        public EmptyMessage()
    • Method Detail

      • messageSize

        public final int messageSize()
        Description copied from class: BaseMessage
        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.
        Specified by:
        messageSize in interface Message
        Overrides:
        messageSize in class BaseMessage
        Returns:
        size of this object when serialized (in bytes)
      • bitcoinSerializeToStream

        protected final void bitcoinSerializeToStream​(java.io.OutputStream stream)
                                               throws java.io.IOException
        Description copied from class: BaseMessage
        Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
        Specified by:
        bitcoinSerializeToStream in class BaseMessage
        Throws:
        java.io.IOException