struct Amount

Defined at line 420 of file ../../third_party/protobuf/src/src/google/protobuf/port.h

The amount to prefetch, or the distance to prefetch from.

Public Members

const size_t num
Unit unit

Public Methods

template <typename T>
Amount ToBytes ()

Scales this amount to bytes. If `unit` is `kObjects`, `T` must be a valid

pointed-to type. If it is not, an invalid zero amount is returned.

Defined at line 432 of file ../../third_party/protobuf/src/src/google/protobuf/port.h

template <typename T>
Amount ToLines ()

Scales this amount to whole cache lines, rounding up. If `unit` is

`kObjects`, `T` must be a valid pointed-to type. If it is not, an invalid

zero amount is returned.

Defined at line 453 of file ../../third_party/protobuf/src/src/google/protobuf/port.h