serialize method

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

Serialize.

Implementation

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

  // Write fields.
  buffer.writeInt32(flags);
  buffer.writeString(state);
  buffer.writeObject(stealthMode);

  // Finished serialization.
}