Skip to content

get_memory_block_ptrGetMemoryBlockPtrGetMemoryBlockPtrget_memory_block_ptrT_get_memory_block_ptr🔗

Short description🔗

get_memory_block_ptrGetMemoryBlockPtrGetMemoryBlockPtrget_memory_block_ptrT_get_memory_block_ptr — Return the data pointer and size of a memory block.

Warning🔗

It is not recommended to use the operator get_memory_block_ptrGetMemoryBlockPtr in HDevelop.

Signature🔗

get_memory_block_ptr( memory_block MemoryBlockHandle, out pointer Pointer, out integer Size )void GetMemoryBlockPtr( const HTuple& MemoryBlockHandle, HTuple* Pointer, HTuple* Size )static void HOperatorSet.GetMemoryBlockPtr( HTuple memoryBlockHandle, out HTuple pointer, out HTuple size )def get_memory_block_ptr( memory_block_handle: HHandle ) -> Tuple[int, int]

Herror T_get_memory_block_ptr( const Htuple MemoryBlockHandle, Htuple* Pointer, Htuple* Size )

void* HMemoryBlock::GetMemoryBlockPtr( Hlong* Size ) const

IntPtr HMemoryBlock.GetMemoryBlockPtr( out int size )

Description🔗

get_memory_block_ptrGetMemoryBlockPtr returns the data pointer to the beginning of a memory block in Pointerpointerpointer and its size in bytes in Sizesizesize. MemoryBlockHandlememoryBlockHandlememory_block_handle is the handle of the memory block.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

MemoryBlockHandlememoryBlockHandlememory_block_handle (input_control) memory_block → (handle)HTuple (HHandle)HMemoryBlock, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the memory block.

Pointerpointerpointer (output_control) pointer → (integer)HTuple (Hlong)HTuple (IntPtr)intHtuple (Hlong)

Data pointer to the beginning of the memory block.

Sizesizesize (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Size of the memory block.

Result🔗

If the parameters are valid, the operator get_memory_block_ptrGetMemoryBlockPtr returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

create_memory_block_externCreateMemoryBlockExtern, create_memory_block_extern_copyCreateMemoryBlockExternCopy, image_to_memory_blockImageToMemoryBlock, read_memory_blockReadMemoryBlock

Module🔗

Foundation