Truncate(int)View sourcepublic void Truncate(int length) Truncates this buffer to the specified unconsumed length. ParameterslengthintThe new length of the unconsumed bytes.