Lines Matching refs:contents
39 // Write protected wrapper class that aligns its contents to a page boundary,
45 "WriteProtected only supports contents up to PAGE_SIZE");
46 static_assert(__is_pod(T), "WriteProtected only supports POD contents");
48 WriteProtectedContents<T> contents;
57 memset(&contents, 0, sizeof(contents));
59 if (mprotect(&contents, PAGE_SIZE, PROT_READ)) {
65 return &contents.value;
69 return contents.value;
74 if (mprotect(&contents, PAGE_SIZE, PROT_READ | PROT_WRITE) != 0) {
78 mutator(&contents.value);
79 if (mprotect(&contents, PAGE_SIZE, PROT_READ) != 0) {