public class SharedNameTable extends Name.Table
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Field and Description |
---|---|
byte[] |
bytes
The shared byte array holding all encountered names.
|
names
Constructor and Description |
---|
SharedNameTable(Names names) |
SharedNameTable(Names names,
int hashSize,
int nameSize)
Allocator
|
Modifier and Type | Method and Description |
---|---|
static SharedNameTable |
create(Names names) |
void |
dispose()
Release any resources used by this table.
|
Name |
fromChars(char[] cs,
int start,
int len)
Get the name from the characters in cs[start..start+len-1].
|
Name |
fromUtf(byte[] cs,
int start,
int len)
get the name for the bytes in cs[start..start+len-1].
|
equals, fromString, fromUtf, hashValue
public SharedNameTable(Names names, int hashSize, int nameSize)
names
- The main name tablehashSize
- the (constant) size to be used for the hash table
needs to be a power of two.nameSize
- the initial size of the name table.public SharedNameTable(Names names)
public static SharedNameTable create(Names names)
public Name fromChars(char[] cs, int start, int len)
Name.Table
fromChars
in class Name.Table
public Name fromUtf(byte[] cs, int start, int len)
Name.Table
fromUtf
in class Name.Table
public void dispose()
Name.Table
dispose
in class Name.Table
Copyright © 2015. All rights reserved.