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

encode method

  • @override

void encode (Encoder encoder, UnknownRawData value, int offset, int depth)

override

Implementation

@override
void encode(Encoder encoder, UnknownRawData value, int offset, int depth) {
  _copyUint8(encoder.data, value.data, offset);
  for (int i = 0; i < value.handles.length; i++) {
    encoder.addHandleDisposition(HandleDisposition(ZX.HANDLE_OP_MOVE,
        value.handles[i], ZX.OBJ_TYPE_NONE, ZX.RIGHT_SAME_RIGHTS));
  }
}