Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
cuttlefish::CompositeSerializable Class Reference

#include <composite_serialization.h>

Inheritance diagram for cuttlefish::CompositeSerializable:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::CompositeSerializable:
Collaboration graph
[legend]

Public Member Functions

 CompositeSerializable (const std::vector< keymaster::Serializable * > &)
 
size_t SerializedSize () const override
 
uint8_t * Serialize (uint8_t *buf, const uint8_t *end) const override
 
bool Deserialize (const uint8_t **buf_ptr, const uint8_t *end) override
 

Private Attributes

std::vector< keymaster::Serializable * > members_
 

Detailed Description

A keymaster::Serializable type that refers to multiple other keymaster::Serializable instances by pointer. When data is serialized or deserialized, it's delegated to the instances pointed to.

The serialization format is to put the instances one after the other in the byte stream.

Constructor & Destructor Documentation

◆ CompositeSerializable()

cuttlefish::CompositeSerializable::CompositeSerializable ( const std::vector< keymaster::Serializable * > &  )

Member Function Documentation

◆ Deserialize()

bool cuttlefish::CompositeSerializable::Deserialize ( const uint8_t **  buf_ptr,
const uint8_t *  end 
)
override

◆ Serialize()

uint8_t * cuttlefish::CompositeSerializable::Serialize ( uint8_t *  buf,
const uint8_t *  end 
) const
override

◆ SerializedSize()

size_t cuttlefish::CompositeSerializable::SerializedSize ( ) const
override

Member Data Documentation

◆ members_

std::vector<keymaster::Serializable*> cuttlefish::CompositeSerializable::members_
private

The documentation for this class was generated from the following files: