IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.Java.Externs.java.io.FileDescriptor Class Reference

Implements the native methods for 'FileDescriptor'. More...

Static Public Member Functions

static int getFd (object self)
 Implements the native method 'getFd'.
 
static void setFd (object self, int value)
 Implements the native method 'setFd'.
 
static long getHandle (object self)
 Implements the native method 'getHandle'.
 
static void setHandle (object self, long value)
 Implements the native method 'setHandle'.
 
static object standardStream (int fd)
 Implements the native method 'standardStream'.
 

Detailed Description

Implements the native methods for 'FileDescriptor'.

Definition at line 13 of file FileDescriptor.cs.

Member Function Documentation

◆ getFd()

static int IKVM.Java.Externs.java.io.FileDescriptor.getFd ( object self)
static

Implements the native method 'getFd'.

Parameters
self
Returns

Definition at line 57 of file FileDescriptor.cs.

58 {
59#if FIRST_PASS
60 throw new NotImplementedException();
61#else
62 lock (self)
63 return (int)FileDescriptorAccessor.GetPtr(self);
64#endif
65 }

◆ getHandle()

static long IKVM.Java.Externs.java.io.FileDescriptor.getHandle ( object self)
static

Implements the native method 'getHandle'.

Parameters
self
Returns

Definition at line 82 of file FileDescriptor.cs.

83 {
84#if FIRST_PASS
85 throw new NotImplementedException();
86#else
87 lock (self)
88 return FileDescriptorAccessor.GetPtr(self);
89#endif
90 }

◆ setFd()

static void IKVM.Java.Externs.java.io.FileDescriptor.setFd ( object self,
int value )
static

Implements the native method 'setFd'.

Parameters
self
value

Definition at line 72 of file FileDescriptor.cs.

73 {
74 SetPtr(self, value);
75 }

◆ setHandle()

static void IKVM.Java.Externs.java.io.FileDescriptor.setHandle ( object self,
long value )
static

Implements the native method 'setHandle'.

Parameters
self
value

Definition at line 97 of file FileDescriptor.cs.

98 {
99 SetPtr(self, value);
100 }

◆ standardStream()

static object IKVM.Java.Externs.java.io.FileDescriptor.standardStream ( int fd)
static

Implements the native method 'standardStream'.

Parameters
fd
Returns

Definition at line 107 of file FileDescriptor.cs.

108 {
109#if FIRST_PASS
110 throw new NotImplementedException();
111#else
112 var fdo = FileDescriptorAccessor.Init();
113 FileDescriptorAccessor.SetPtr(fdo, GetStandardHandle(fd));
114 return fdo;
115#endif
116 }

The documentation for this class was generated from the following file: