title: Can you stop memory from being swapped to disk?
body: <p>I was wondering if it was possible to prevent memory of a object (class or struct) from being swapped to disk?</p>
  
  <p>Edit: As for why I've been told some of the data I'm going to be working with cannot be written to disk.<br>
  I dont expect it to be left long enough for the data to be swapped out but thought it's worth checking.</p>