Class CXUnsavedFile

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class CXUnsavedFile extends Struct<CXUnsavedFile> implements NativeResource
Provides the contents of a file that has not yet been saved to disk.

Each CXUnsavedFile instance provides the name of a file on the system along with the current contents of that file that have not yet been saved to disk.

Layout


 struct CXUnsavedFile {
     char const * Filename();
     char const * Contents();
     unsigned long Length();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • FILENAME

      public static final int FILENAME
      The struct member offsets.
    • CONTENTS

      public static final int CONTENTS
      The struct member offsets.
    • LENGTH

      public static final int LENGTH
      The struct member offsets.
  • Constructor Details

    • CXUnsavedFile

      public CXUnsavedFile(ByteBuffer container)
      Creates a CXUnsavedFile instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details