001 package org.otfeed.support;
002
003 import java.nio.ByteBuffer;
004 import java.nio.ByteOrder;
005
006 /**
007 * Allocates byte-reverse ByteBuffers.
008 */
009 public class ByteReverseBufferAllocator implements IBufferAllocator {
010
011 public ByteBuffer allocate(int size) {
012 return ByteBuffer.allocate(size).order(ByteOrder.LITTLE_ENDIAN);
013 }
014 }