Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Function

relocateCsrssAddress

Private Function
std.os.windows.relocateCsrssAddress
fn relocateCsrssAddress(addr: u64) *const anyopaque

Takes an address in the CSRSS address space's mapped view of the shared memory region, and returns the corresponding address in our mapped view of the shared memory region.

Params

  • addr: u64

File

os/windows.zig:6008
6008
6009
6010
6011
6012
fn relocateCsrssAddress(addr: u64) *const anyopaque {
    const base: [*]const u8 = @ptrCast(peb().ReadOnlySharedMemoryBase);
    const offset: usize = @intCast(addr - peb().CsrServerReadOnlySharedMemoryBase);
    return base + offset;
}