@@ -119,7 +119,7 @@ impl BrandString {
119
119
/// Sets the value for the given leaf/register pair
120
120
/// leaf must be between 0x80000002 and 0x80000004
121
121
#[ inline]
122
- pub fn set_reg_for_leaf ( & mut self , leaf : u32 , reg : Reg , val : u32 ) {
122
+ fn set_reg_for_leaf ( & mut self , leaf : u32 , reg : Reg , val : u32 ) {
123
123
// It's ok not to validate parameters here, leaf and reg should
124
124
// both be compile-time constants. If there's something wrong with them,
125
125
// that's a programming error and we should panic anyway.
@@ -128,7 +128,7 @@ impl BrandString {
128
128
129
129
/// Get an immutable u8 slice view into the brand string buffer
130
130
#[ inline]
131
- pub fn as_bytes ( & self ) -> & [ u8 ] {
131
+ fn as_bytes ( & self ) -> & [ u8 ] {
132
132
// This is actually safe, because self.reg_buf has a fixed, known size,
133
133
// and also there's no risk of misalignment, since we're downgrading
134
134
// alignment constraints from dword to byte.
@@ -137,7 +137,7 @@ impl BrandString {
137
137
138
138
/// Get a mutable u8 slice view into the brand string buffer
139
139
#[ inline]
140
- pub fn as_bytes_mut ( & mut self ) -> & mut [ u8 ] {
140
+ fn as_bytes_mut ( & mut self ) -> & mut [ u8 ] {
141
141
unsafe {
142
142
slice:: from_raw_parts_mut ( self . reg_buf . as_mut_ptr ( ) as * mut u8 , Self :: REG_BUF_SIZE * 4 )
143
143
}
0 commit comments