private static Buffer GetFilledBuffer(uint capacity = 42, uint length = 42, byte data = D) { var buffer = new Buffer(capacity) { Length = length }; buffer.Fill(0, length, data); return(buffer); }