WriteInt() public method

4字节写入
public WriteInt ( int v ) : void
v int
return void
示例#1
0
 public NetBuffer Serialize(NetBuffer buffer)
 {
     buffer.WriteUInt(pid);
     buffer.WriteUInt(index);
     buffer.WriteInt(dataSize);
     buffer.WriteUShort(checksum);
     return(buffer);
 }
示例#2
0
 public NetBuffer Serialize(NetBuffer buffer)
 {
     buffer.WriteUInt(sid);
     buffer.WriteUInt(token);
     buffer.WriteUInt(cmd);
     buffer.WriteUInt(index);
     buffer.WriteULong(player);
     buffer.WriteInt(zone);
     buffer.WriteULong(runner);
     buffer.WriteUInt(dataSize);
     buffer.WriteUInt(checksum);
     return(buffer);
 }
 public override void WriteToBuffer(NetBuffer buffer)
 {
     buffer.WriteInt(value);
 }