class Mmap::Region

Included Modules

Defined in:

mmap/region.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Mmap

[](idx, size) : SubRegion [], crypto_key : Nil crypto_key, guard_page : Nil guard_page, madvise(advice) : Nil madvise, mlock : Nil mlock, mprotect(prot : Prot) : Nil mprotect, msync : Nil msync, munlock : Nil munlock, noaccess noaccess, readonly readonly, readwrite readwrite, to_slice : Bytes to_slice, to_unsafe to_unsafe

Class methods inherited from module Mmap

open(*args, &) open

Constructor Detail

def self.new(size, flags = nil, *, prot : Prot = Prot::ReadWrite, shared : Bool = false, file : File | Nil = nil, offset = 0, addr : Pointer(Void) | Nil = nil) #

[View source]

Class Method Detail

def self.open(*args, &) #

[View source]

Instance Method Detail

def [](idx, size) : SubRegion #

size limited to Int32 for due to Slice limitations


[View source]
def close : Nil #

[View source]
def closed? : Bool #

[View source]
def resize(size, moveable : Bool = false) : Nil #

[View source]
def to_slice : Bytes #

[View source]