11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

$VIEW$VIEWReturns the contents of memory locations.$VIEW(offset,mode,length)$V(offset,mode,length)ParametersoffsetmodelengthAn offset, in bytes, from a base address within the memory region specifiedby mode. Interpretation is mode-dependent (see below.)Optional — The memory region whose base address will be used to locatethe data. Default is -1.Optional — The length of the data to be returned in <strong>Caché</strong>. Default is 1.Description$VIEW returns the contents of memory locations.The view buffer is a special memory area used to store blocks of data read from the <strong>Caché</strong>database (CACHE.DAT) with the VIEW command. After reading a block into the view buffer,you can use the $VIEW function with the special 0 mode to examine the contents of the viewbuffer.The $VIEW function is usually used when debugging and repairing <strong>Caché</strong> databases andsystem information.ParametersoffsetThe value of this argument depends upon the mode argument, as follows:• When mode is 0, -1, or -2, specify a positive integer as the offset from the base address,in bytes, counting from 0.• When mode is -3, or a positive integer, specify -1, which represents the base address inthe virtual address space for the process. (Offset is not meaningful in a virtual addressspace.)• When mode is -5, specify a positive integer that specifies the number of global nodes inthe current block. In this case, odd values return full global references and even valuesreturn pointers or data.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 309

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!