import static org.junit.Assert.assertEquals;

import java.lang.foreign.MemorySession;
import java.lang.foreign.ValueLayout;

import org.junit.Test;

public class test {

	@Test
	public void test() {
		java.lang.foreign.MemorySegment mem = java.lang.foreign.MemorySegment.allocateNative(16, 4, MemorySession.openImplicit());
        assertEquals(16, mem.byteSize());
        byte b = mem.get(ValueLayout.JAVA_BYTE, 0);
        System.out.println("b: " + b);
        long l = mem.get(ValueLayout.JAVA_LONG, 4);
        System.out.println("l: " + l);
	}

}
