Class UntrustedString


  • public class UntrustedString
    extends Object
    Struct to `Display` fields in a safe way using `PrintableString`
    • Method Detail

      • get_a

        public String get_a()
      • set_a

        public void set_a​(String val)
      • of

        public static UntrustedString of​(String a_arg)
        Constructs a new UntrustedString given each field
      • eq

        public boolean eq​(UntrustedString b)
        Checks if two UntrustedStrings contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • write

        public byte[] write()
        Serialize the UntrustedString object into a byte array which can be read by UntrustedString_read