Thanks to visit codestin.com
Credit goes to libdparse.dlang.io

Function StackBuffer.clear

void clear();