Output channel adapter that counts the elements that pass through it.
class output counter[any value value type]
implements output[value type]
private output[value type] the output
private var integer count
output counter(output[value type] the output)
this • the output = the output
this • count = 0
override void write(value type value)
count += 1
the outputwrite(value)
override void write all(readonly list[value type] values)
count += valuessize
the outputwrite all(values)
override void sync()
override void close()