当前位置: 首页>>代码示例>>Java>>正文


Java AbstractSerializedData类代码示例

本文整理汇总了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);
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:10,代码来源:SecretChatHelper.java

示例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);
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:12,代码来源:SecretChatHelper.java

示例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);
}
 
开发者ID:DrKLO,项目名称:Telegram,代码行数:10,代码来源:SecretChatHelper.java

示例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);
}
 
开发者ID:DrKLO,项目名称:Telegram,代码行数:12,代码来源:SecretChatHelper.java


注:本文中的org.telegram.tgnet.AbstractSerializedData类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。