java.lang.Object
com.pnfsoftware.jeb.core.units.code.simatic.S7.StringA
Enclosing class:
S7

@Ser public static class S7.StringA extends Object
STRING types parser.
  • Field Details

    • MIN_LEN

      public static final int MIN_LEN
      Minimum STRING maximum length.
      See Also:
    • MAX_LEN

      public static final int MAX_LEN
      Maximum STRING maximum length.
      See Also:
  • Constructor Details

    • StringA

      public StringA(int maxlen, byte[] stringBytes)
      Create a STRING value.
      Parameters:
      maxlen - maximum number of characters
      stringBytes - current string bytes
  • Method Details

    • getCurrentLength

      public int getCurrentLength()
      Retrieve the current string length.
      Returns:
      current length in bytes
    • getMaximumLength

      public int getMaximumLength()
      Retrieve the maximum string length.
      Returns:
      maximum length in bytes
    • getMemorySizeInBytes

      public int getMemorySizeInBytes()
      Retrieve the number of bytes used by this STRING in memory.
      Returns:
      memory size in bytes
    • getStringBytes

      public byte[] getStringBytes()
      Retrieve the current string bytes.
      Returns:
      string bytes
    • toString

      public String toString()
      Overrides:
      toString in class Object