IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
BufferAccessor.cs
Go to the documentation of this file.
2{
3
4#if FIRST_PASS == false && EXPORTER == false && IMPORTER == false
5
9 internal sealed class BufferAccessor : Accessor<object>
10 {
11
12 FieldAccessor<object, long> address;
13 FieldAccessor<object, int> capacity;
14 FieldAccessor<object, int> position;
15 FieldAccessor<object, int> limit;
16
21 public BufferAccessor(AccessorTypeResolver resolver) :
22 base(resolver, "java.nio.Buffer")
23 {
24
25 }
26
30 public long GetAddress(object self) => GetField(ref address, nameof(address)).GetValue(self);
31
35 public int GetCapacity(object self) => GetField(ref capacity, nameof(capacity)).GetValue(self);
36
40 public int GetPosition(object self) => GetField(ref position, nameof(position)).GetValue(self);
41
45 public int GetLimit(object self) => GetField(ref limit, nameof(limit)).GetValue(self);
46
47 }
48
49#endif
50
51}