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.
struct CXUnsavedFile {
char const * Filename;
char const * Contents;
unsigned long Length;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | CXUnsavedFile.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CONTENTS
The struct member offsets. |
| public static final int | FILENAME
The struct member offsets. |
| public static final int | LENGTH
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | CXUnsavedFile(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static CXUnsavedFile | |
| public static CXUnsavedFile. | calloc(int
the buffer capacity capacity)Returns a new |
| public static CXUnsavedFile | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static CXUnsavedFile. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static CXUnsavedFile | |
| public static CXUnsavedFile | |
| public static CXUnsavedFile. | |
| public static CXUnsavedFile. | |
| public ByteBuffer | |
| public CXUnsavedFile | |
| protected CXUnsavedFile | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static CXUnsavedFile | |
| public static CXUnsavedFile | |
| public static CXUnsavedFile. | create(int
the buffer capacity capacity)Returns a new |
| public static CXUnsavedFile. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static CXUnsavedFile | |
| public static CXUnsavedFile. | |
| public ByteBuffer | |
| public CXUnsavedFile | |
| public String | |
| public long | |
| public static CXUnsavedFile | |
| public static CXUnsavedFile. | malloc(int
the buffer capacity capacity)Returns a new |
| public static CXUnsavedFile | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static CXUnsavedFile. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static CXUnsavedFile | |
| public static CXUnsavedFile | |
| public static CXUnsavedFile. | |
| public static CXUnsavedFile. | |
| public static ByteBuffer | |
| public static void | |
| public static ByteBuffer | |
| public static void | |
| public static String | |
| public static long | |
| public static void | nLength(long struct, long value)
Sets the specified value to the |
| public CXUnsavedFile | |
| public CXUnsavedFile | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CONTENTS | back to summary |
|---|---|
| public static final int CONTENTS The struct member offsets. | |
| FILENAME | back to summary |
|---|---|
| public static final int FILENAME The struct member offsets. | |
| LENGTH | back to summary |
|---|---|
| public static final int LENGTH The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| CXUnsavedFile | back to summary |
|---|---|
| protected CXUnsavedFile(long address, ByteBuffer container) | |
| CXUnsavedFile | back to summary |
|---|---|
| public CXUnsavedFile(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static CXUnsavedFile calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static CXUnsavedFile. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static CXUnsavedFile calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static CXUnsavedFile. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static CXUnsavedFile callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static CXUnsavedFile callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static CXUnsavedFile. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static CXUnsavedFile. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| Contents | back to summary |
|---|---|
| public ByteBuffer Contents() a buffer containing the unsaved contents of this file
| |
| Contents | back to summary |
|---|---|
| public CXUnsavedFile Contents(ByteBuffer value) Sets the address of the specified | |
| create | back to summary |
|---|---|
| protected CXUnsavedFile create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static CXUnsavedFile create() Returns a new | |
| create | back to summary |
|---|---|
| public static CXUnsavedFile create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static CXUnsavedFile. Returns a new
| |
| create | back to summary |
|---|---|
| public static CXUnsavedFile. Create a
| |
| createSafe | back to summary |
|---|---|
| public static CXUnsavedFile createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static CXUnsavedFile. Like
| |
| Filename | back to summary |
|---|---|
| public ByteBuffer Filename() the file whose contents have not yet been saved. This file must already exist in the file system.
| |
| Filename | back to summary |
|---|---|
| public CXUnsavedFile Filename(ByteBuffer value) Sets the address of the specified encoded string to the | |
| FilenameString | back to summary |
|---|---|
| public String FilenameString() the file whose contents have not yet been saved. This file must already exist in the file system.
| |
| Length | back to summary |
|---|---|
| public long Length() the length of the unsaved contents of this buffer
| |
| malloc | back to summary |
|---|---|
| public static CXUnsavedFile malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static CXUnsavedFile. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static CXUnsavedFile malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static CXUnsavedFile. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static CXUnsavedFile mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static CXUnsavedFile mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static CXUnsavedFile. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static CXUnsavedFile. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nContents | back to summary |
|---|---|
| public static ByteBuffer nContents(long struct) Unsafe version of | |
| nContents | back to summary |
|---|---|
| public static void nContents(long struct, ByteBuffer value) Unsafe version of | |
| nFilename | back to summary |
|---|---|
| public static ByteBuffer nFilename(long struct) Unsafe version of | |
| nFilename | back to summary |
|---|---|
| public static void nFilename(long struct, ByteBuffer value) Unsafe version of | |
| nFilenameString | back to summary |
|---|---|
| public static String nFilenameString(long struct) Unsafe version of | |
| nLength | back to summary |
|---|---|
| public static long nLength(long struct) Unsafe version of | |
| nLength | back to summary |
|---|---|
| public static void nLength(long struct, long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public CXUnsavedFile set(ByteBuffer Filename, ByteBuffer Contents) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public CXUnsavedFile set(CXUnsavedFile src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
CXUnsavedFile structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final CXUnsavedFile |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | |
| public CXUnsavedFile. | Contents(ByteBuffer value)
Sets the address of the specified |
| public ByteBuffer | Returns: aByteBuffer view of the null-terminated string pointed to by the CXUnsavedFile#Filename field.
|
| public CXUnsavedFile. | Filename(ByteBuffer value)
Sets the address of the specified encoded string to the |
| public String | |
| protected CXUnsavedFile | |
| public long | |
| protected CXUnsavedFile. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final CXUnsavedFile ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| Contents | back to summary |
|---|---|
public ByteBuffer Contents()
| |
| Contents | back to summary |
|---|---|
| public CXUnsavedFile. Sets the address of the specified | |
| Filename | back to summary |
|---|---|
public ByteBuffer Filename()
| |
| Filename | back to summary |
|---|---|
| public CXUnsavedFile. Sets the address of the specified encoded string to the | |
| FilenameString | back to summary |
|---|---|
public String FilenameString()
| |
| getElementFactory | back to summary |
|---|---|
| protected CXUnsavedFile getElementFactory() Implements abstract org.
| |
| Length | back to summary |
|---|---|
public long Length()
| |
| self | back to summary |
|---|---|
| protected CXUnsavedFile. Implements abstract org.
| |