Home
last modified time | relevance | path

Searched refs:MemoryLayout (Results 1 – 14 of 14) sorted by relevance

/external/flatbuffers/swift/Sources/FlatBuffers/
DFlatBufferBuilder.swift108 let size = MemoryLayout<UOffset>.size in finish<T>()
121 let size = MemoryLayout<UOffset>.size in finish<T>()
150 let sizeofVoffset = MemoryLayout<VOffset>.size in endTable()
240 preAlign(len: len, alignment: MemoryLayout<T>.size) in preAlign<T: Scalar>()
246 let size = MemoryLayout<UOffset>.size in refer()
292 startVector(size, elementSize: MemoryLayout<T>.size) in createVector<T: Scalar>()
329 startVector(len, elementSize: MemoryLayout<Offset<T>>.size) in createVector<T>()
475 preAlign(len: MemoryLayout<T>.size, in push<T: Scalar>()
476 alignment: MemoryLayout<T>.size) in push<T: Scalar>()
477 _bb.push(value: element, len: MemoryLayout<T>.size) in push<T: Scalar>()
DTable.swift35 let position = offset + Int32(MemoryLayout<Int32>.size) in directString()
110 let memorySize = Int32(MemoryLayout<Int32>.size) in compare()
129 let memorySize = Int32(MemoryLayout<Int32>.size) in compare()
DByteBuffer.swift102 _writerSize += (MemoryLayout<UInt8>.size * Int(padding)) in fill()
108 let size = elements.count * MemoryLayout<T>.size in push<T: Scalar>()
111 push(value: s, len: MemoryLayout.size(ofValue: s)) in push<T: Scalar>()
DFlatBuffersUtils.swift14 return bb.duplicate(removing: MemoryLayout<Int32>.size) in removeSizePrefix()
DConstants.swift17 public let FlatBufferMaxSize = UInt32.max << ((MemoryLayout<SOffset>.size * 8 - 1) - 1)
/external/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.h130 , fDefaultLayout(MemoryLayout::k140_Standard)
190 SpvId getType(const Type& type, const MemoryLayout& layout);
198 SpvId getPointerType(const Type& type, const MemoryLayout& layout,
207 void writeStruct(const Type& type, const MemoryLayout& layout, SpvId resultId);
456 MemoryLayout memoryLayoutForVariable(const Variable&) const;
477 const MemoryLayout fDefaultLayout;
DSkSLSPIRVCodeGenerator.cpp450 void SPIRVCodeGenerator::writeStruct(const Type& type, const MemoryLayout& memoryLayout, in writeStruct()
467 if (!MemoryLayout::LayoutIsSupported(*field.fType)) { in writeStruct()
544 SpvId SPIRVCodeGenerator::getType(const Type& rawType, const MemoryLayout& layout) { in getType()
566 SkASSERT(layout.fStd == MemoryLayout::Standard::k140_Standard || in getType()
567 layout.fStd == MemoryLayout::Standard::k430_Standard); in getType()
568 MemoryLayout::Standard otherStd = layout.fStd == MemoryLayout::Standard::k140_Standard in getType()
569 ? MemoryLayout::Standard::k430_Standard in getType()
570 : MemoryLayout::Standard::k140_Standard; in getType()
609 if (!MemoryLayout::LayoutIsSupported(*type)) { in getType()
742 SpvId SPIRVCodeGenerator::getPointerType(const Type& rawType, const MemoryLayout& layout, in getPointerType()
[all …]
DSkSLMetalCodeGenerator.cpp2058 MemoryLayout memoryLayout(MemoryLayout::kMetal_Standard); in writeFields()
2063 if (!MemoryLayout::LayoutIsSupported(*fieldType)) { in writeFields()
/external/skia/src/sksl/
DSkSLMemoryLayout.h17 class MemoryLayout {
25 MemoryLayout(Standard std) in MemoryLayout() function
/external/skia/tests/
DSkSLMemoryLayoutTest.cpp20 SkSL::MemoryLayout layout(SkSL::MemoryLayout::k140_Standard); in DEF_TEST()
108 SkSL::MemoryLayout layout(SkSL::MemoryLayout::k430_Standard); in DEF_TEST()
/external/tensorflow/tensorflow/lite/swift/Tests/
DInterpreterTests.swift350 guard unsafeData.count % MemoryLayout<Element>.stride == 0 else { return nil }
358 count: unsafeData.count / MemoryLayout<Element>.stride
/external/flatbuffers/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/
Dunion_vector_generated.swift7 public static var byteSize: Int { return MemoryLayout<UInt8>.size }
Dmonster_test_generated.swift11 public static var byteSize: Int { return MemoryLayout<UInt8>.size }
27 public static var byteSize: Int { return MemoryLayout<Int8>.size }
41 public static var byteSize: Int { return MemoryLayout<UInt8>.size }
55 public static var byteSize: Int { return MemoryLayout<UInt8>.size }
69 public static var byteSize: Int { return MemoryLayout<UInt8>.size }
DFlatBuffersUnionTests.swift112 static var byteSize: Int { return MemoryLayout<Int32>.size }