Method: FFI::AbstractMemory#freeze

Defined in:
ext/ffi_c/AbstractMemory.c

#freezeObject

Freeze the AbstractMemory object and unset the writable flag.



699
700
701
702
703
704
705
# File 'ext/ffi_c/AbstractMemory.c', line 699

static VALUE
memory_freeze(VALUE self)
{
    AbstractMemory* ptr = MEMORY(self);
    ptr->flags &= ~MEM_WR;
    return rb_call_super(0, NULL);
}