public class ScopeEncoder extends Object
Constructor and Description |
---|
ScopeEncoder(int bitsPerScope)
Create a scope encoder.
|
Modifier and Type | Method and Description |
---|---|
int |
encode(CacheScope scopeInfo)
Encode scope information into integer.
|
public ScopeEncoder(int bitsPerScope)
bitsPerScope
- the number of bits the scope haspublic int encode(CacheScope scopeInfo)
scopeInfo
- the scope will be encodedCopyright © 2023. All Rights Reserved.