Class EmptyMessage

    • Method Detail

      • 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
      • bitcoinSerialize

        public byte[] bitcoinSerialize()
        Description copied from class: Message
        Returns a copy of the array returned by Message.unsafeBitcoinSerialize(), which is safe to mutate. If you need extra performance and can guarantee you won't write to the array, you can use the unsafe version.
        Overrides:
        bitcoinSerialize in class Message
        Returns:
        a freshly allocated serialized byte array