IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
FileChannelImplAccessor.cs
Go to the documentation of this file.
1using System;
2
4{
5
6#if FIRST_PASS == false && EXPORTER == false && IMPORTER == false
7
11 internal sealed class FileChannelImplAccessor : Accessor<object>
12 {
13
14 Type ikvmInternalCallerID;
15
16 FieldAccessor<object, object> fd;
17 MethodAccessor<Func<object>> ___getCallerID_;
18
23 public FileChannelImplAccessor(AccessorTypeResolver resolver) :
24 base(resolver, "sun.nio.ch.FileChannelImpl")
25 {
26
27 }
28
29 Type IkvmInternalCallerID => Resolve(ref ikvmInternalCallerID, "ikvm.internal.CallerID");
30
34 public object GetFd(object self) => GetField(ref fd, nameof(fd)).GetValue(self);
35
39 public void SetFd(object self, object value) => GetField(ref fd, nameof(fd)).SetValue(self, value);
40
45 public object InvokeGetCallerID() => GetMethod(ref ___getCallerID_, "__<GetCallerID>", IkvmInternalCallerID).Invoker();
46
47 }
48
49#endif
50
51}
IKVM.Reflection.Type Type