void VariableSerializer::write(CStrRef v) { if (m_type == APCSerialize && !v.isNull() && v->isStatic()) { union { char buf[8]; StringData *sd; } u; u.sd = v.get(); m_buf->append("S:"); m_buf->append(u.buf, 8); m_buf->append(';'); } else { v.serialize(this); } }
void VariableSerializer::write(CStrRef v) { v.serialize(this); }