Example #1
0
 private ZMemory(byte[] data, short[] locals, Stack<short> stack)
 {
     m_bytes = data;
     m_locals = locals;
     m_stack = stack;
     m_header = new ZHeader(this);
 }
Example #2
0
 /// <summary>
 /// Initializes the memory with the provided byte array
 /// </summary>
 /// <param name="storyBytes">Byte array containing the story file bytes</param>
 public virtual void LoadStory(byte[] storyBytes)
 {
     m_bytes = storyBytes;
     m_header = new ZHeader(this);
 }