Google is committed to advancing racial equity for Black communities. See how.

encode method

  • @override

void encode (Encoder encoder, InterfaceRequest<T> value, int offset, int depth)

override

Implementation

@override
void encode(
    Encoder encoder, InterfaceRequest<T> value, int offset, int depth) {
  final handle = value.channel?.handle;
  _encodeHandle(
      encoder,
      handle == null
          ? null
          : HandleDisposition(ZX.HANDLE_OP_MOVE, handle, ZX.OBJ_TYPE_CHANNEL,
              ZX.DEFAULT_CHANNEL_RIGHTS),
      offset,
      false);
}