@@ -84,7 +84,7 @@ impl<let MaxPaddedBytes: u32, let PaddedChunksMinusOne: u32, let MaxBytes: u32>
84
84
* @brief construct a SubString object from an input byte array
85
85
* @details the input byte array must have a number of bytes less than or equal to MaxBytes
86
86
**/
87
- fn new <let InputBytes : u32 >(input : [u8 ; InputBytes ], input_length : u32 ) -> Self {
87
+ pub fn new <let InputBytes : u32 >(input : [u8 ; InputBytes ], input_length : u32 ) -> Self {
88
88
assert (MaxBytes <= MaxPaddedBytes );
89
89
assert (input_length <= MaxBytes );
90
90
assert (InputBytes <= MaxBytes );
@@ -100,7 +100,7 @@ impl<let MaxPaddedBytes: u32, let PaddedChunksMinusOne: u32, let MaxBytes: u32>
100
100
* @details each SubString can have different MaxBytes sizes, however we need OtherBytes <= MaxBytes
101
101
* (use concat_into for cases where this is not the case)
102
102
**/
103
- fn concat <let OtherPaddedBytes : u32 , let OtherPaddedChunks : u32 , let OtherMaxBytes : u32 >(
103
+ pub fn concat <let OtherPaddedBytes : u32 , let OtherPaddedChunks : u32 , let OtherMaxBytes : u32 >(
104
104
self ,
105
105
other : SubString <OtherPaddedBytes , OtherPaddedChunks , OtherMaxBytes >,
106
106
) -> Self {
@@ -127,7 +127,7 @@ impl<let MaxPaddedBytes: u32, let PaddedChunksMinusOne: u32, let MaxBytes: u32>
127
127
* @details each SubString can have different MaxBytes sizes, however we need MaxBytes <= OtherBytes
128
128
* (use concat for cases where this is not the case)
129
129
**/
130
- fn concat_into <let OtherPaddedBytes : u32 , let OtherPaddedChunks : u32 , let OtherMaxBytes : u32 >(
130
+ pub fn concat_into <let OtherPaddedBytes : u32 , let OtherPaddedChunks : u32 , let OtherMaxBytes : u32 >(
131
131
self ,
132
132
other : SubString <OtherPaddedBytes , OtherPaddedChunks , OtherMaxBytes >,
133
133
) -> SubString <OtherPaddedBytes , OtherPaddedChunks , OtherMaxBytes > {
@@ -213,7 +213,7 @@ impl<let MaxPaddedBytes: u32, let PaddedChunks: u32, let MaxBytes: u32> StringBo
213
213
* @brief construct a StringBody object from an input byte array
214
214
* @details the input byte array must have a number of bytes less than or equal to MaxBytes
215
215
**/
216
- fn new <let InputBytes : u32 >(data : [u8 ; InputBytes ], length : u32 ) -> Self {
216
+ pub fn new <let InputBytes : u32 >(data : [u8 ; InputBytes ], length : u32 ) -> Self {
217
217
assert (length <= MaxBytes );
218
218
assert (length <= InputBytes );
219
219
let mut body : [u8 ; MaxPaddedBytes ] = [0 ; MaxPaddedBytes ];
@@ -226,7 +226,7 @@ impl<let MaxPaddedBytes: u32, let PaddedChunks: u32, let MaxBytes: u32> StringBo
226
226
/**
227
227
* @brief Validate a substring exists in the StringBody. Returns a success flag and the position within the StringBody that the match was found
228
228
**/
229
- fn substring_match <NeedleSubString >(self , substring : NeedleSubString ) -> (bool , u32 )
229
+ pub fn substring_match <NeedleSubString >(self , substring : NeedleSubString ) -> (bool , u32 )
230
230
where
231
231
NeedleSubString : SubStringTrait ,
232
232
{
0 commit comments