serializeVector<T extends Serializable> function

void serializeVector<T extends Serializable>(
  1. List<T> value,
  2. Serializer serializer
)

Implementation

void serializeVector<T extends Serializable>(List<T> value, Serializer serializer) {
  serializer.serializeU32AsUleb128(value.length);
  for (T item in value) {
    item.serialize(serializer);
  }
}