Mercurial > projects > dstep
annotate dstep/foundation/NSByteOrder.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | 89f3c3ef1fd2 |
children |
rev | line source |
---|---|
14 | 1 /** |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Aug 3, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.foundation.NSByteOrder; | |
8 | |
9 import dstep.corefoundation.CFByteOrder; | |
10 import dstep.foundation.NSObjCRuntime; | |
11 import dstep.objc.bridge.Bridge; | |
16
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
12 import dstep.objc.objc; |
14 | 13 |
14 enum | |
15 { | |
16 NS_UnknownByteOrder = CFByteOrderUnknown, | |
17 NS_LittleEndian = CFByteOrderLittleEndian, | |
18 NS_BigEndian = CFByteOrderBigEndian | |
19 } | |
20 | |
21 struct NSSwappedFloat | |
22 { | |
23 uint v; | |
24 } | |
25 | |
16
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
26 struct NSSwappedDouble |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
27 { |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
28 ulong v; |
19885b43130e
Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
29 } |