1 /******************************************************************************* 2 * Copyright (c) 2013 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.debug.examples.internal.memory.engine; 15 16 import org.eclipse.debug.core.model.MemoryByte; 17 18 /** 19 * For testing addressable size > 1. Group each addressable unit in a MemoryByte 20 * array. 21 * 22 */ 23 public class SampleMemoryUnit { 24 25 MemoryByte[] fBytes; 26 SampleMemoryUnit(MemoryByte[] bytes)27 public SampleMemoryUnit(MemoryByte[] bytes) { 28 fBytes = bytes; 29 } 30 getBytes()31 public MemoryByte[] getBytes() { 32 return fBytes; 33 } 34 setBytes(MemoryByte[] bytes)35 public void setBytes(MemoryByte[] bytes) { 36 fBytes = bytes; 37 } 38 39 } 40