本文整理汇总了Java中org.telegram.tgnet.AbstractSerializedData类的典型用法代码示例。如果您正苦于以下问题:Java AbstractSerializedData类的具体用法?Java AbstractSerializedData怎么用?Java AbstractSerializedData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractSerializedData类属于org.telegram.tgnet包,在下文中一共展示了AbstractSerializedData类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readParams
import org.telegram.tgnet.AbstractSerializedData; //导入依赖的package包/类
public void readParams(AbstractSerializedData stream, boolean exception) {
random_id = stream.readInt64(exception);
date = stream.readInt32(exception);
layer = TLRPC.TL_decryptedMessageLayer.TLdeserialize(stream, stream.readInt32(exception), exception);
if (stream.readBool(exception)) {
file = TLRPC.EncryptedFile.TLdeserialize(stream, stream.readInt32(exception), exception);
}
new_key_used = stream.readBool(exception);
}
示例2: serializeToStream
import org.telegram.tgnet.AbstractSerializedData; //导入依赖的package包/类
public void serializeToStream(AbstractSerializedData stream) {
stream.writeInt32(constructor);
stream.writeInt64(random_id);
stream.writeInt32(date);
layer.serializeToStream(stream);
stream.writeBool(file != null);
if (file != null) {
file.serializeToStream(stream);
}
stream.writeBool(new_key_used);
}
示例3: readParams
import org.telegram.tgnet.AbstractSerializedData; //导入依赖的package包/类
public void readParams(AbstractSerializedData stream, boolean exception) {
stream.readInt64(exception);
date = stream.readInt32(exception);
layer = TLRPC.TL_decryptedMessageLayer.TLdeserialize(stream, stream.readInt32(exception), exception);
if (stream.readBool(exception)) {
file = TLRPC.EncryptedFile.TLdeserialize(stream, stream.readInt32(exception), exception);
}
new_key_used = stream.readBool(exception);
}
示例4: serializeToStream
import org.telegram.tgnet.AbstractSerializedData; //导入依赖的package包/类
public void serializeToStream(AbstractSerializedData stream) {
stream.writeInt32(constructor);
stream.writeInt64(0);
stream.writeInt32(date);
layer.serializeToStream(stream);
stream.writeBool(file != null);
if (file != null) {
file.serializeToStream(stream);
}
stream.writeBool(new_key_used);
}