public static class INLongRep.SparseRep extends INLongRep.DefaultRep
INLongRep.DefaultRep, INLongRep.EmptyRep, INLongRep.SparseRep| Constructor and Description |
|---|
SparseRep(int nBytes) |
SparseRep(SizeofMarker marker) |
| Modifier and Type | Method and Description |
|---|---|
INLongRep |
clear(IN parent,
INLongRep.EmptyRep emptyRep) |
INLongRep |
compact(IN parent,
INLongRep.EmptyRep emptyRep) |
INLongRep |
copy(int from,
int to,
int n,
IN parent) |
long |
get(int idx) |
long |
getMemorySize() |
boolean |
isEmpty() |
INLongRep.SparseRep |
resize(int capacity) |
INLongRep |
set(int idx,
long val,
IN parent)
Mutates to a DefaultRep with a larger number of bytes if necessary
to hold the given value.
|
public SparseRep(int nBytes)
public SparseRep(SizeofMarker marker)
public INLongRep.SparseRep resize(int capacity)
resize in class INLongRep.DefaultReppublic long get(int idx)
get in class INLongRep.DefaultReppublic INLongRep set(int idx, long val, IN parent)
INLongRep.DefaultRepset in class INLongRep.DefaultReppublic INLongRep compact(IN parent, INLongRep.EmptyRep emptyRep)
compact in class INLongRep.DefaultReppublic INLongRep clear(IN parent, INLongRep.EmptyRep emptyRep)
clear in class INLongRep.DefaultReppublic boolean isEmpty()
isEmpty in class INLongRep.DefaultReppublic INLongRep copy(int from, int to, int n, IN parent)
copy in class INLongRep.DefaultReppublic long getMemorySize()
getMemorySize in class INLongRep.DefaultRepCopyright © 2024. All rights reserved.