id = $id; $this->name = $name; $this->bytes = $bytes; $this->segmentIndexSize = $segmentIndexSize; } public function ipSubCompare($ip, $buff, $offset) { // return Util::ipCompare($ip, substr($buff, $offset, strlen($ip))); return SearchIp::ipSubCompare($ip, $buff, $offset); } public function __toString() { return sprintf( "{id:%d, name:%s, bytes:%d, segmentIndexSize:%d}", $this->id, $this->name, $this->bytes, $this->segmentIndexSize ); } }