// Path: DirectMemory-Cache/src/main/java/org/directmemory/measures/Ram.java
// public class Ram extends Sizing {
// 
// }
// 
// Path: DirectMemory-Cache/src/main/java/org/directmemory/misc/DummyPojo.java
// public class DummyPojo implements Serializable {
// 	/**
// 	 * A dummy pojo implementation for test purposes
// 	 */
// 	private static final long serialVersionUID = 1L;
// 	public DummyPojo() {
// 		
// 	}
// 	
// 	public DummyPojo(String name, int size) {
// 		this.name = name;
// 		this.size = size;
// 		payLoad = new String(new byte [size]);		
// 	}
// 	public String name;
// 	public int size;
// 	public String payLoad;
// }


import java.io.EOFException;
import java.io.IOException;
import org.directmemory.measures.Ram;
import org.directmemory.misc.DummyPojo;
import com.dyuproject.protostuff.LinkedBuffer;
import com.dyuproject.protostuff.ProtostuffIOUtil;
import com.dyuproject.protostuff.runtime.RuntimeSchema;

package org.directmemory.serialization;




public final class DummyPojoSerializer implements Serializer
	{
	    
    	final DummyPojo pojo = new DummyPojo("test", Ram.Kb(2));
	    final byte[] data;
	    
	    public DummyPojoSerializer()
	    {

// Path: DirectMemory-Cache/src/main/java/org/directmemory/measures/Ram.java
// public class Ram extends Sizing {
// 
// }
// 
// Path: DirectMemory-Cache/src/main/java/org/directmemory/misc/DummyPojo.java
// public class DummyPojo implements Serializable {
// 	/**
// 	 * A dummy pojo implementation for test purposes
// 	 */
// 	private static final long serialVersionUID = 1L;
// 	public DummyPojo() {
// 		
// 	}
// 	
// 	public DummyPojo(String name, int size) {
// 		this.name = name;
// 		this.size = size;
// 		payLoad = new String(new byte [size]);		
// 	}
// 	public String name;
// 	public int size;
// 	public String payLoad;
// }


// Path: DirectMemory-Cache/src/main/java/org/directmemory/serialization/DummyPojoSerializer.java
import java.io.EOFException;
import java.io.IOException;
import org.directmemory.measures.Ram;
import org.directmemory.misc.DummyPojo;
import com.dyuproject.protostuff.LinkedBuffer;
import com.dyuproject.protostuff.ProtostuffIOUtil;
import com.dyuproject.protostuff.runtime.RuntimeSchema;

package org.directmemory.serialization;




public final class DummyPojoSerializer implements Serializer
	{
	    
    	final DummyPojo pojo = new DummyPojo("test", Ram.Kb(2));
	    final byte[] data;
	    
	    public DummyPojoSerializer()
	    {

	        data = ProtostuffIOUtil.toByteArray(pojo, RuntimeSchema.getSchema(DummyPojo.class), LinkedBuffer.allocate(2048));
