Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed May 23, 2022
1 parent 0c3692d commit 2ae705f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions objc2-encode/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ use crate::Encoding;
pub unsafe trait Encode {
/// The Objective-C type-encoding for this type.
const ENCODING: Encoding<'static>;

#[doc(hidden)]
const __ENCODING_ARR: [u8; 200] = Self::ENCODING.get_str_array::<200>();

/// TODO
const ENCODING_CSTR: *const u8 = Self::__ENCODING_ARR.as_ptr();
}

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

0 comments on commit 2ae705f

Please sign in to comment.