Package smetana.core

Class size_t


  • public class size_t
    extends Object
    "Pseudo size" of a C structure. In C, this is the actual size of the structure. In Java, this is an indication to know which structure we are going to allocate.
    Author:
    Arnaud Roques
    • Field Detail

      • tobeAllocated

        public final Class tobeAllocated
    • Constructor Detail

      • size_t

        public size_t​(Class tobeAllocated)
    • Method Detail

      • negate

        public size_t negate()
      • multiply

        public size_t multiply​(int sz)
      • isStrictPositive

        public boolean isStrictPositive()
      • isStrictNegative

        public boolean isStrictNegative()
      • getTobeAllocated

        public final Class getTobeAllocated()
      • plus

        public size_t plus​(int strlen)
      • isZero

        public boolean isZero()
      • getInternalNb

        public int getInternalNb()