Skip to content

Instantly share code, notes, and snippets.

View dastrobu's full-sized avatar

Daniel Strobusch dastrobu

View GitHub Profile
@dastrobu
dastrobu / PointerArithmetic.swift
Last active July 9, 2024 09:54
Swift Pointer Arithmetic for C Interoperability
struct MyStruct {
var n: Int
func sayHello() {
print("hello")
}
}
var s: MyStruct = MyStruct(n: 1)
var a: [UInt8] = []