According to the docs
<https://developer.apple.com/documentation/swift/unsaferawbufferpointer/2632297-load>,
the load(fromByteOffset:as:) method requires the instance to be “properly
aligned” Does that mean if I have raw data meant to be interpreted as

0      1      2      3      4      5      6
[ Int8 |    Int16    |    Int16    | Int8 | Int8 ]


i can’t just load the Int16 from byte offset 1?
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to