Class NTCP2Payload.Block

    • Constructor Detail

      • Block

        public Block​(int ttype)
    • Method Detail

      • write

        public int write​(byte[] tgt,
                         int off)
        Returns:
        new offset
      • getTotalLength

        public int getTotalLength()
        Returns:
        the size of the block, including the 3 byte header (type and size)
      • getDataLength

        public abstract int getDataLength()
        Returns:
        the size of the block, NOT including the 3 byte header (type and size)
      • writeData

        public abstract int writeData​(byte[] tgt,
                                      int off)
        Returns:
        new offset