pointerSync<X, R extends RType> method
Creates a synchronized pointer field for f.
Uses UnknownCodec to keep the pointed-to value synchronized without imposing a specialized value representation.
Implementation
StructPointerValueField<X, R> pointerSync<X, R extends RType>(F f) {
_checkField(f);
final type = _getFieldAs<RPointer<R>>(f);
final unknownCodec = UnknownCodec<X, R>(type.target);
final pointerCodec = PointerCodec(type, unknownCodec);
return .new(offset(f), pointerCodec);
}