Lines Matching refs:TypeShape
95 constexpr TypeShape kHandleTypeShape = TypeShape(4u, 4u, 0u, 1u);
96 constexpr TypeShape kInt8TypeShape = TypeShape(1u, 1u);
97 constexpr TypeShape kInt16TypeShape = TypeShape(2u, 2u);
98 constexpr TypeShape kInt32TypeShape = TypeShape(4u, 4u);
99 constexpr TypeShape kInt64TypeShape = TypeShape(8u, 8u);
100 constexpr TypeShape kUint8TypeShape = TypeShape(1u, 1u);
101 constexpr TypeShape kUint16TypeShape = TypeShape(2u, 2u);
102 constexpr TypeShape kUint32TypeShape = TypeShape(4u, 4u);
103 constexpr TypeShape kUint64TypeShape = TypeShape(8u, 8u);
104 constexpr TypeShape kBoolTypeShape = TypeShape(1u, 1u);
105 constexpr TypeShape kFloat32TypeShape = TypeShape(4u, 4u);
106 constexpr TypeShape kFloat64TypeShape = TypeShape(8u, 8u);
128 TypeShape CStructTypeShape(std::vector<FieldShape*>* fields, uint32_t extra_handles = 0u) {
136 TypeShape typeshape = field->Typeshape();
149 return TypeShape(size, alignment, depth, max_handles, max_out_of_line);
152 TypeShape CUnionTypeShape(const std::vector<flat::Union::Member>& members) {
169 return TypeShape(size, alignment, depth, max_handles, max_out_of_line);
172 TypeShape FidlStructTypeShape(std::vector<FieldShape*>* fields) {
176 TypeShape PointerTypeShape(TypeShape element, uint32_t max_element_count = 1u) {
178 // computed the TypeShape for the element we're pointing to. In that case,
180 // the depth. We'll never see a zero size for a real TypeShape because empty
200 return TypeShape(8u, 8u, depth, max_handles, max_out_of_line);
203 TypeShape CEnvelopeTypeShape(TypeShape contained_type) {
210 TypeShape CTableTypeShape(std::vector<TypeShape*>* fields, uint32_t extra_handles = 0u) {
226 auto pointer_element = TypeShape(array_size, 8u, 1 + element_depth,
234 TypeShape ArrayTypeShape(TypeShape element, uint32_t count) {
235 return TypeShape(element.Size() * count,
241 TypeShape VectorTypeShape(TypeShape element, uint32_t max_element_count) {
248 TypeShape StringTypeShape(uint32_t max_length) {
255 TypeShape PrimitiveTypeShape(types::PrimitiveSubtype type) {
1310 TypeShape typeshape;
1388 auto header_field_shape = FieldShape(TypeShape(16u, 4u));
1502 std::vector<TypeShape*> fields(table_declaration->members.size());
1628 bool Library::CompileArrayType(flat::ArrayType* array_type, TypeShape* out_typeshape) {
1629 TypeShape element_typeshape;
1636 bool Library::CompileVectorType(flat::VectorType* vector_type, TypeShape* out_typeshape) {
1638 TypeShape element_typeshape;
1650 bool Library::CompileStringType(flat::StringType* string_type, TypeShape* out_typeshape) {
1655 bool Library::CompileHandleType(flat::HandleType* handle_type, TypeShape* out_typeshape) {
1662 TypeShape* out_typeshape) {
1675 bool Library::CompilePrimitiveType(flat::PrimitiveType* primitive_type, TypeShape* out_typeshape) {
1681 TypeShape* out_typeshape) {
1682 TypeShape typeshape;
1767 bool Library::CompileType(Type* type, TypeShape* out_typeshape) {