Lines Matching defs:stream
246 void Component::serialize(OStream *stream) const {
247 stream->addU8((uint8_t)mType);
248 stream->addU8((uint8_t)mKind);
249 stream->addU8((uint8_t)(mNormalized ? 1 : 0));
250 stream->addU32(mVectorSize);
253 void Component::loadFromStream(IStream *stream) {
254 mType = (RsDataType)stream->loadU8();
255 mKind = (RsDataKind)stream->loadU8();
256 uint8_t temp = stream->loadU8();
258 mVectorSize = stream->loadU32();