public abstract class TLContext extends Object
Constructor and Description |
---|
TLContext() |
Modifier and Type | Method and Description |
---|---|
TLBytes |
allocateBytes(int size) |
protected TLObject |
convertCompatClass(TLObject src) |
TLIntVector |
deserializeIntVector(InputStream stream) |
TLLongVector |
deserializeLongVector(InputStream stream) |
TLObject |
deserializeMessage(byte[] data) |
TLObject |
deserializeMessage(InputStream stream) |
TLObject |
deserializeMessage(int clazzId,
InputStream stream) |
TLStringVector |
deserializeStringVector(InputStream stream) |
TLVector |
deserializeVector(InputStream stream) |
Set<Integer> |
getRegisteredClassIds() |
protected void |
init() |
boolean |
isSupportedObject(int classId) |
boolean |
isSupportedObject(TLObject object) |
<T extends TLObject> |
registerClass(Class<T> tClass) |
<T extends TLObject> |
registerClass(int clazzId,
Class<T> tClass) |
<T extends TLObject> |
registerCompatClass(Class<T> tClass) |
<T extends TLObject> |
registerCompatClass(int clazzId,
Class<T> tClass) |
void |
releaseBytes(TLBytes unused) |
protected void init()
public boolean isSupportedObject(TLObject object)
public boolean isSupportedObject(int classId)
public <T extends TLObject> void registerCompatClass(int clazzId, Class<T> tClass)
public TLObject deserializeMessage(byte[] data) throws IOException
IOException
public TLObject deserializeMessage(int clazzId, InputStream stream) throws IOException
IOException
public TLObject deserializeMessage(InputStream stream) throws IOException
IOException
public TLVector deserializeVector(InputStream stream) throws IOException
IOException
public TLIntVector deserializeIntVector(InputStream stream) throws IOException
IOException
public TLLongVector deserializeLongVector(InputStream stream) throws IOException
IOException
public TLStringVector deserializeStringVector(InputStream stream) throws IOException
IOException
public TLBytes allocateBytes(int size)
public void releaseBytes(TLBytes unused)
Copyright © 2017. All rights reserved.