你能不被交换到磁盘停止内存?你能、不被、磁盘、内存

2023-09-04 00:42:03 作者:擒拿

我在想,如果这是possable从被交换到磁盘牛玉忠一个对象(类或结构)的内存?

I was wondering if it was possable to provent memory of a object (class or struct) from being swapped to disk?

编辑:至于为什么我一直在说的一些数据我要与不能写入到磁盘的工作 我不希望它留下足够长的数据被换出,但认为这是值得一试。

As for why I've been told some of the data I'm going to be working with cannot be written to disk. I dont expect it to be left long enough for the data to be swapped out but thought it's worth checking.

推荐答案

您可能会寻找的 SecureString的类,这将不会被交换到磁盘。

You might be looking for the SecureString class, which will not be swapped to disk.