@Inline private static @Unsigned int bufToHash(@NoLength char[] buf, int length) { @Unsigned int len = length; @Unsigned int first = buf[0]; first <<= 19; @Unsigned int second = 1 << 23; @Unsigned int third = 0; @Unsigned int fourth = 0; @Unsigned int fifth = 0; if (length >= 4) { second = buf[length - 4];
@Inline private static @Unsigned int bufToHash(@NoLength char[] buf, int length) { @Unsigned int len = length; @Unsigned int first = buf[0]; first <<= 19; @Unsigned int second = 1 << 23; @Unsigned int third = 0; @Unsigned int fourth = 0; @Unsigned int fifth = 0; @Unsigned int sixth = 0; if (length >= 4) { second = buf[length - 4];
@Inline private static @Unsigned int bufToHash(@NoLength char[] buf, int length) { @Unsigned int len = length; @Unsigned int first = buf[0]; first <<= 19; @Unsigned int second = 1 << 23; @Unsigned int third = 0; @Unsigned int fourth = 0; @Unsigned int fifth = 0; if (length >= 4) { second = buf[length - 4];
@Inline private static @Unsigned int bufToHash(@NoLength char[] buf, int length) { @Unsigned int len = length; @Unsigned int first = buf[0]; first <<= 19; @Unsigned int second = 1 << 23; @Unsigned int third = 0; @Unsigned int fourth = 0; @Unsigned int fifth = 0; @Unsigned int sixth = 0; if (length >= 4) { second = buf[length - 4];
@Inline static ElementName elementNameByBuffer(@NoLength char[] buf, int length, Interner interner) { @Unsigned int hash = ElementName.bufToHash(buf, length); int[] hashes; hashes = ElementName.ELEMENT_HASHES; int index = levelOrderBinarySearch(hashes, hash); if (index < 0) { return null; } else { ElementName elementName = ElementName.ELEMENT_NAMES[index]; @Local String name = elementName.name; if (!Portability.localEqualsBuffer(name, buf, length)) { return null; } return elementName; } }
@Inline static ElementName elementNameByBuffer(@NoLength char[] buf, int length, Interner interner) { @Unsigned int hash = ElementName.bufToHash(buf, length); int[] hashes; hashes = ElementName.ELEMENT_HASHES; int index = levelOrderBinarySearch(hashes, hash); if (index < 0) { return null; } else { ElementName elementName = ElementName.ELEMENT_NAMES[index]; @Local String name = elementName.name; if (!Portability.localEqualsBuffer(name, buf, length)) { return null; } return elementName; } }
int length, Interner interner) { @Unsigned int hash = AttributeName.bufToHash(buf, length); int[] hashes; hashes = AttributeName.ATTRIBUTE_HASHES;
int length, Interner interner) { @Unsigned int hash = AttributeName.bufToHash(buf, length); int[] hashes; hashes = AttributeName.ATTRIBUTE_HASHES;