Class SSU2Payload.PeerTestBlock

    • Constructor Detail

      • PeerTestBlock

        public PeerTestBlock​(int msgNum,
                             int code,
                             Hash hash,
                             byte[] data)
        Parameters:
        hash - may be null
    • Method Detail

      • getDataLength

        public int getDataLength()
        Specified by:
        getDataLength in class SSU2Payload.Block
        Returns:
        the size of the block, NOT including the 3 byte header (type and size)
      • writeData

        public int writeData​(byte[] tgt,
                             int off)
        Specified by:
        writeData in class SSU2Payload.Block
        Returns:
        new offset