encode method

void encode (Encoder encoder, T value, int base, int depth)

Implementation

void encode(Encoder encoder, T value, int base, int depth) {
  switch (encoder.wireFormat) {
    case WireFormat.v2:
      type.encode(encoder, value, base + offset, depth);
      break;
    default:
      throw FidlError('unknown wire format');
  }
}