public function Decode($buf = '') { $this->buffer = new CodeEngine($buf); $this->Uin = $this->buffer->DecodeInt32(); $this->GameID = $this->buffer->DecodeInt16(); $temp = new TDBExtGameInfo(); $temp->Decode($this->buffer); $this->CurrentExtGameInfo = $temp; }
public function Decode($buf = '') { $this->buffer = new CodeEngine($buf); $this->Uin = $this->buffer->DecodeInt32(); $this->GameID = $this->buffer->DecodeInt16(); $this->ResultID = $this->buffer->DecodeInt16(); $temp = new TDBExtGameInfo(); $temp->Decode($this->buffer); $this->CurrentExtGameInfo = $temp; $this->TransparentDataSize = $this->buffer->DecodeInt16(); if ($this->TransparentDataSize > max_transparent_data_size) { return false; } if ($this->TransparentDataSize > 0) { $this->TransparentData = $this->buffer->DecodeMemory($this->TransparentDataSize); } }