4#if FIRST_PASS == false && EXPORTER == false && IMPORTER == false
9 internal sealed class BufferAccessor : Accessor<object>
12 FieldAccessor<object, long> address;
13 FieldAccessor<object, int> capacity;
14 FieldAccessor<object, int> position;
15 FieldAccessor<object, int> limit;
21 public BufferAccessor(AccessorTypeResolver resolver) :
22 base(resolver,
"java.nio.Buffer")
30 public long GetAddress(
object self) => GetField(
ref address, nameof(address)).GetValue(
self);
35 public int GetCapacity(
object self) => GetField(
ref capacity, nameof(capacity)).GetValue(
self);
40 public int GetPosition(
object self) => GetField(
ref position, nameof(position)).GetValue(
self);
45 public int GetLimit(
object self) => GetField(
ref limit, nameof(limit)).GetValue(
self);