writeProxyApiBaseCodec method

void writeProxyApiBaseCodec(
  1. T generatorOptions,
  2. Root root,
  3. Indent indent
)

Writes the base codec to be used by all ProxyApis.

This codec should use 128 as the identifier for objects that exist in an InstanceManager. The write implementation should convert an instance to an identifier. The read implementation should covert the identifier to an instance.

This will serve as the default codec for all ProxyApis. If a ProxyApi needs to create its own codec (it has methods/fields/constructor that use a data class) it should extend this codec and not StandardMessageCodec.

Implementation

void writeProxyApiBaseCodec(
  T generatorOptions,
  Root root,
  Indent indent,
) {}