serialize method

  1. @override
void serialize(
  1. List<int> buffer
)
override

Serialize.

Implementation

@override
void serialize(List<int> buffer) {
  // Write type-id 0x83d60fc2.
  buffer.writeInt32(0x83d60fc2);

  // Write fields.
  buffer.writeInt32(flags);
  buffer.writeInt32(replies);
  buffer.writeInt32(repliesPts);
  final localRecentRepliersCopy = recentRepliers;
  if (localRecentRepliersCopy != null) {
    buffer.writeVectorObject(localRecentRepliersCopy);
  }
  final localChannelIdCopy = channelId;
  if (localChannelIdCopy != null) {
    buffer.writeInt64(localChannelIdCopy);
  }
  final localMaxIdCopy = maxId;
  if (localMaxIdCopy != null) {
    buffer.writeInt32(localMaxIdCopy);
  }
  final localReadMaxIdCopy = readMaxId;
  if (localReadMaxIdCopy != null) {
    buffer.writeInt32(localReadMaxIdCopy);
  }

  // Finished serialization.
}