Skip navigation links
JNA API 5.4.0
com.sun.jna

Class StringArray

  • All Implemented Interfaces:
    Function.PostCallRead


    public class StringArray
    extends Memory
    implements Function.PostCallRead
    Handle native array of char* or wchar_t* type by managing allocation/disposal of native strings within an array of pointers. An extra NULL pointer is always added to the end of the native pointer array for convenience.
    • Constructor Detail

      • StringArray

        public StringArray(java.lang.String[] strings)
        Create a native array of strings.
      • StringArray

        public StringArray(java.lang.String[] strings,
                           boolean wide)
        Create a native array of strings.
      • StringArray

        public StringArray(java.lang.String[] strings,
                           java.lang.String encoding)
        Create a native array of strings using the given encoding.
      • StringArray

        public StringArray(WString[] strings)
        Create a native array of wide strings.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Memory
JNA API 5.4.0

Copyright © 2007-2018 Timothy Wall. All Rights Reserved.