你能不被交换到磁盘停止内存? [英] Can you stop memory from being swapped to disk?

查看:228
本文介绍了你能不被交换到磁盘停止内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在想,如果这是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.

这篇关于你能不被交换到磁盘停止内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆