Class EmptyMessage

    • Method Detail

      • getMessageSize

        public final int getMessageSize()
        Description copied from class: Message
        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.
        Overrides:
        getMessageSize in class Message
        Returns:
        size of the serialized message in bytes
      • bitcoinSerializeToStream

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