private static void WriteBuffer(IByteTarget target, IByteBuffer buffer) => buffer.CopyToStream(target.AsWritableStream());