I want to create a buffer with the layout 0 4 8 12 13 14 15 16 [ x:Float | y:Float | z:Float | r:UInt8 | g:UInt8 | b:UInt8 | _:UInt8 ]
Normally, I’d use UnsafeRawBufferPointer for this, but I need the buffer to be a vector (i.e. with append(_:)), and for it to return a Swift-managed Array<UInt8>. How should I do this? The project does not use Foundation.
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users