memoryManager.free(b);
}
@Test
public void testUnsignedShortArray() {
ISqlJetMemoryBuffer b = memoryManager.allocate(ISqlJetMemoryManager.SHORT_SIZE, SqlJetMemoryBufferType.ARRAY);
b.putShortUnsigned(0, 0xFFFF);
Assert.assertEquals(0xFFFF, b.getShortUnsigned(0));
b.putShortUnsigned(0, (short) 1);
Assert.assertEquals(1, b.getShortUnsigned(0));
Assert.assertEquals(1, b.getShort(0));
b.putShort(0, (short) 1);
Assert.assertEquals(1, b.getShortUnsigned(0));
Assert.assertEquals(1, b.getShort(0));
memoryManager.free(b);
}