{"action":"opened","issue":{"url":"https://api.github.com/repos/ning/tr13/issues/7","labels_url":"https://api.github.com/repos/ning/tr13/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ning/tr13/issues/7/comments","events_url":"https://api.github.com/repos/ning/tr13/issues/7/events","html_url":"https://github.com/ning/tr13/issues/7","id":63440776,"number":7,"title":"Strange exception coming out of bytesToUnsigned","user":{"login":"TheWhiteShodow","id":11588850,"avatar_url":"https://avatars.githubusercontent.com/u/11588850?v=3","gravatar_id":"","url":"https://api.github.com/users/TheWhiteShodow","html_url":"https://github.com/TheWhiteShodow","followers_url":"https://api.github.com/users/TheWhiteShodow/followers","following_url":"https://api.github.com/users/TheWhiteShodow/following{/other_user}","gists_url":"https://api.github.com/users/TheWhiteShodow/gists{/gist_id}","starred_url":"https://api.github.com/users/TheWhiteShodow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheWhiteShodow/subscriptions","organizations_url":"https://api.github.com/users/TheWhiteShodow/orgs","repos_url":"https://api.github.com/users/TheWhiteShodow/repos","events_url":"https://api.github.com/users/TheWhiteShodow/events{/privacy}","received_events_url":"https://api.github.com/users/TheWhiteShodow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-21T18:51:05Z","updated_at":"2015-03-21T18:51:05Z","closed_at":null,"body":"I'm loading up a tr13 into a byte buffer then attempting to use it from a memory mapped byte buffer and getting errors attempting to lookup values I put in the tr13.  It isn't even very large yet.  It appears to be attempting to pull up a value which is much larger than the generated file itself.\r\n\r\nHere is the exception:\r\nException in thread \"main\" java.lang.IndexOutOfBoundsException\r\n\tat java.nio.Buffer.checkIndex(Buffer.java:532)\r\n\tat java.nio.DirectByteBuffer.get(DirectByteBuffer.java:253)\r\n\tat com.ning.tr13.util.VInt.bytesToUnsigned(VInt.java:165)\r\n\tat com.ning.tr13.impl.bytes.ByteBufferBytesTrieLookup._findValue(ByteBufferBytesTrieLookup.java:81)\r\n\tat com.ning.tr13.impl.bytes.ByteBufferBytesTrieLookup.findValue(ByteBufferBytesTrieLookup.java:36)\r\n\tat MemoryMappedLookup.testString(MemoryMappedLookup.java:174)\r\n\r\nAny thoughts it I'm somehow causing this?  There is quite a lot of code to try and post a small sample. I will try and cook up something if this doesn't ring any bells with anybody."}}