Lines Matching defs:stream
259 void Component::serialize(OStream *stream) const {
260 stream->addU8((uint8_t)mType);
261 stream->addU8((uint8_t)mKind);
262 stream->addU8((uint8_t)(mNormalized ? 1 : 0));
263 stream->addU32(mVectorSize);
266 void Component::loadFromStream(IStream *stream) {
267 mType = (RsDataType)stream->loadU8();
268 mKind = (RsDataKind)stream->loadU8();
269 uint8_t temp = stream->loadU8();
271 mVectorSize = stream->loadU32();