Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.ViewMemoryConstants
Source: src/com/multiversesocial/hyperview/ViewMemoryConstants.java

ViewMemoryConstants

HyperView V3.2 — interface
version V3.2 interface

Summary

Memory map Atomic block 4 bytes Local View # 4 bytes Extenal View # 4 bytes Server port # --- View Blocks * MAX_VIEWS

Source file: ViewMemoryConstants.java

Hierarchy

Extends: none

Implements: none

Referenced HyperView classes

Media files used

Declaration & members

public abstract interface ViewMemoryConstants

Declared in src/com/multiversesocial/hyperview/ViewMemoryConstants.java, lines 14–69. 31 field(s), 0 constructor(s), 0 method(s). Every member has an anchor you can link to (e.g. ViewMemoryConstants.html#<id>).

Fields (31)

DeclarationValue / initializerDescriptionSource
public static final int DATA_BUFFER_SIZE= 4096 (constant)No comment in source; not referenced by name in this type’s methods.line 30
public static final int EXTERNAL_IO_ENABLE= 16 (constant)
source: HyperConstants.EXTERNAL_IO_ENABLE
ie: Exec a process.line 65
public static final int OFFSET_EXTERNAL_VIEWS= 4 (constant)No comment in source; name appears in 1 other source file(s): ViewMemory.line 35
public static final int OFFSET_FLAGS= 28 (constant)28 - 16 // HyperView.memoryFlagsline 42
public static final int OFFSET_IO_BLOCK_START= 12 (constant)No comment in source; name appears in 1 other source file(s): ViewMemory.line 38
public static final int OFFSET_IOEND= 32 (constant)No comment in source; not referenced by name in this type’s methods.line 43
public static final int OFFSET_IP_PORT= 20 (constant)No comment in source; not referenced by name in this type’s methods.line 40
public static final int OFFSET_LISTEN_HOST= 16 (constant)16 - 4 // View Info blockline 39
public static final int OFFSET_LOCAL_VIEWS= 0 (constant)-------------- Atomic Global info block offsetsline 34
public static final int OFFSET_PROCESS= 24 (constant)24 - 12 // process ID #line 41
public static final int OFFSET_SERVER_ID= 8 (constant)No comment in source; name appears in 1 other source file(s): ViewMemory.line 36
public static final int OFFSET_VIEW_DATA_END= 4136 (constant)
source: OFFSET_VIEW_DATA_START + DATA_BUFFER_SIZE
No comment in source; not referenced by name in this type’s methods.line 46
public static final int OFFSET_VIEW_DATA_START= 40 (constant)36 - 28 beginning of bufferline 45
public static final int OFFSET_VIEW_END= 36 (constant)32 - 24 // end of View info blockline 44
public static final int P2P_BASE= 8 (constant)
source: HyperConstants.P2P_BASE
No comment in source; name appears in 1 other source file(s): HyperConstants.line 63
public static final int SERVER_BASE= 1 (constant)
source: HyperConstants.SERVER_BASE
No comment in source; name appears in 2 other source file(s): HyperConstants, ViewMemory.line 60
public static final int SERVER_BASE_RUNNING= 1 (constant)------ Global bit defs.line 24
public static final int SERVER_BASE_SIGNALED= 2 (constant)No comment in source; name appears in 1 other source file(s): ViewMemory.line 25
public static final int SERVER_MASK= 3 (constant)
source: (SERVER_BASE | START_SERVER_BASE)
No comment in source; not referenced by name in this type’s methods.line 67
public static final int SHUTDOWN_ALL= 4 (constant)No comment in source; not referenced by name in this type’s methods.line 26
public static final int START_P2P_SERVER= 4 (constant)
source: HyperConstants.START_P2P_SERVER
No comment in source; name appears in 1 other source file(s): HyperConstants.line 62
public static final int START_SERVER_BASE= 2 (constant)
source: HyperConstants.START_SERVER_BASE
No comment in source; name appears in 3 other source file(s): HyperConstants, HyperView, ViewMemory.line 61
public static final int VIEW_INFO_INT_SIZE= 6 (constant)
source: ((VIEW_INFO_SIZE >> 2) & -1)
No comment in source; not referenced by name in this type’s methods.line 50
public static final int VIEW_INFO_SIZE= 24 (constant)
source: OFFSET_VIEW_END - OFFSET_IO_BLOCK_START
--- block segment sizesline 49
public static final int VIEW_INT_SIZE= 263673 (constant)
source: (VIEW_MEMORY_SIZE >>> 2)
No comment in source; name appears in 1 other source file(s): ViewMemory.line 57
public static final int VIEW_MAX= 255 (constant)255 Views should be enough for most :)line 16
public static final int VIEW_MEMORY_SIZE= 1054692 (constant)
source: (VIEW_RECORD_SIZE * VIEW_MAX) + OFFSET_IO_BLOCK_START
No comment in source; name appears in 1 other source file(s): ViewMemory.line 56
public static final int VIEW_PORT= 0 (constant)IO Multiplex Packet data offsetsline 19
public static final int VIEW_RECORD_SIZE= 4136 (constant)
source: OFFSET_VIEW_DATA_START + DATA_BUFFER_SIZE
No comment in source; name appears in 1 other source file(s): ViewMemory.line 53
public static final int VIEW_RECORD_START= 12 (constant)
source: OFFSET_IO_BLOCK_START
No comment in source; name appears in 1 other source file(s): ViewMemory.line 52
public static final int VIEW_ROM_TAG= 1447642455 (constant)
source: (int)(('V' << 24) | ('I' << 16) | ('E' << 8) | 'W')
32 bit ROM TAGline 21

Constructors (0)

None (interface).

Methods (0)

None declared.

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

implements — ViewMemory.java, line 17

   17  public class ViewMemory extends InterProcessMemory implements ViewMemoryConstants,
   18  MessagePortConstants, SharedMemoryListener, MemoryInitializer
   19  {
Hits--