Skip to content

Commit 2ae705f

Browse files
committed
TMP
1 parent 0c3692d commit 2ae705f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

objc2-encode/src/encode.rs

+6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ use crate::Encoding;
6868
pub unsafe trait Encode {
6969
/// The Objective-C type-encoding for this type.
7070
const ENCODING: Encoding<'static>;
71+
72+
#[doc(hidden)]
73+
const __ENCODING_ARR: [u8; 200] = Self::ENCODING.get_str_array::<200>();
74+
75+
/// TODO
76+
const ENCODING_CSTR: *const u8 = Self::__ENCODING_ARR.as_ptr();
7177
}
7278

7379
/// Types whoose references has an Objective-C type-encoding.

0 commit comments

Comments
 (0)