public class CodeGen
extends java.lang.Object
| Constructor and Description |
|---|
CodeGen() |
| Modifier and Type | Method and Description |
|---|---|
static <T> FastStructReader<T> |
genReader(java.lang.Class<T> t)
Generate FastStructReader.
|
static <T> FastStructWriter<T> |
genWriter(java.lang.Class<T> t)
Generate FastStructWriter.
|
static <T> FastStructWriter<T> |
genWriter(java.lang.Class<T> t,
int bufsiz)
Generate FastStructWriter.
|
public static <T> FastStructReader<T> genReader(java.lang.Class<T> t) throws RecordException
T - struct typet - class of what to readRecordException - if impossible to convert between types in class and structpublic static <T> FastStructWriter<T> genWriter(java.lang.Class<T> t, int bufsiz) throws RecordException
T - struct typet - class of what to writebufsiz - byte bufferRecordException - if impossible to convert between types in class and structpublic static <T> FastStructWriter<T> genWriter(java.lang.Class<T> t) throws RecordException
T - struct typet - class of what to writeRecordException - if impossible to convert between types in class and struct