Skip to content

Instantly share code, notes, and snippets.

@Interfere
Created April 15, 2016 10:28
Show Gist options
  • Save Interfere/8a141662ed1a64f099e94c318c692617 to your computer and use it in GitHub Desktop.
Save Interfere/8a141662ed1a64f099e94c318c692617 to your computer and use it in GitHub Desktop.
private final var _header: _VectorHeader {
unsafeAddress {
return Buffer(unsafeBufferObject: self).withUnsafeMutablePointerToValue { UnsafePointer($0) }
}
unsafeMutableAddress {
return Buffer(unsafeBufferObject: self).withUnsafeMutablePointerToValue { $0 }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment