Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //I'm using java to test this since it's the only other language I have readily available right now
- public interface Test extends Library {
- Test INSTANCE = (Test) Native.load("ROCKETLOBBYSYSTEM", Test.class);
- boolean testThisThingy(String c0, String c1);
- String testThisThingy2();
- void message_addToQueue(long id, String message, String nullStr);
- boolean message_pollMessage();
- long message_polledMessageID();
- String message_polledMessageContents();
- }
- public static void main(String[] args) {
- int funny = 5;
- System.out.println(Test.INSTANCE.testThisThingy("hey", "hey"));
- System.out.println(Test.INSTANCE.testThisThingy2());
- System.out.println(Test.INSTANCE.testThisThingy2());
- Test.INSTANCE.message_addToQueue(3, null, "null");
- Test.INSTANCE.message_addToQueue(5, "hey there pal", null);
- Test.INSTANCE.message_addToQueue(7, "null", "null");
- Test.INSTANCE.message_addToQueue(7, "AYY", "null");
- while(Test.INSTANCE.message_pollMessage()) {
- System.out.println(String.format("%d - %s", Test.INSTANCE.message_polledMessageID(),
- Test.INSTANCE.message_polledMessageContents()));
- }
- //StringBuffer buffer = Test.INSTANCE.testThisThingy2("yes");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement