Home
last modified time | relevance | path

Searched defs:u8 (Results 1 – 18 of 18) sorted by relevance

/build/make/tools/aconfig/aconfig_storage_write_api/src/
Dflag_info_update.rs26 buf: &mut [u8], in get_flag_info_offset()
54 buf: &mut [u8], in get_flag_attribute_and_offset()
57 ) -> Result<(u8, usize), AconfigStorageError> { in get_flag_attribute_and_offset()
66 buf: &mut [u8], in update_flag_has_server_override()
81 buf: &mut [u8], in update_flag_has_local_override()
Dlib.rs133 file: &mut [u8], in update_boolean_flag_value_cxx()
139 file: &mut [u8], in update_flag_has_server_override_cxx()
146 file: &mut [u8], in update_flag_has_local_override_cxx()
155 file: &mut [u8], in update_boolean_flag_value_cxx()
174 file: &mut [u8], in update_flag_has_server_override_cxx()
205 file: &mut [u8], in update_flag_has_local_override_cxx()
274 fn get_flag_attribute_at_offset(file: &str, value_type: FlagValueType, offset: u32) -> u8 { in get_flag_attribute_at_offset()
Dflag_value_update.rs24 buf: &mut [u8], in update_boolean_flag_value()
/build/make/tools/aconfig/aconfig_storage_read_api/src/
Dlib.rs124 pub fn get_boolean_flag_value(file: &[u8], index: u32) -> Result<bool, AconfigStorageError> { in get_boolean_flag_value()
160 file: &[u8], in get_flag_attribute()
163 ) -> Result<u8, AconfigStorageError> { in get_flag_attribute()
218 file: &[u8], in get_package_read_context_cxx()
223 file: &[u8], in get_flag_read_context_cxx()
228 pub fn get_boolean_flag_value_cxx(file: &[u8], offset: u32) -> BooleanFlagValueQueryCXX; in get_boolean_flag_value_cxx()
231 file: &[u8], in get_flag_attribute_cxx()
320 pub(crate) fn new(info_result: Result<u8, AconfigStorageError>) -> Self { in new()
354 pub fn get_package_read_context_cxx(file: &[u8], package: &str) -> ffi::PackageReadContextQueryCXX { in get_package_read_context_cxx()
360 file: &[u8], in get_flag_read_context_cxx()
[all …]
Dflag_info_query.rs27 buf: &[u8], in find_flag_attribute()
30 ) -> Result<u8, AconfigStorageError> { in find_flag_attribute()
Dflag_value_query.rs26 pub fn find_boolean_flag_value(buf: &[u8], flag_index: u32) -> Result<bool, AconfigStorageError> { in find_boolean_flag_value()
Dflag_table_query.rs35 buf: &[u8], in find_flag_read_context()
Dpackage_table_query.rs36 buf: &[u8], in find_package_read_context()
/build/make/tools/aconfig/aconfig_storage_file/src/
Dsip_hasher13.rs95 unsafe fn u8to64_le(buf: &[u8], start: usize, len: usize) -> u64 { in u8to64_le()
165 fn short_write(&mut self, msg: &[u8]) { in short_write()
201 slice::from_raw_parts(&i as *const usize as *const u8, mem::size_of::<usize>()) in write_usize() constant
208 fn write_u8(&mut self, i: u8) { in write_u8()
213 fn write(&mut self, msg: &[u8]) { in write()
Dpackage_table.rs63 pub fn into_bytes(&self) -> Vec<u8> { in into_bytes()
128 pub fn into_bytes(&self, version: u32) -> Vec<u8> { in into_bytes()
137 fn into_bytes_v1(&self) -> Vec<u8> { in into_bytes_v1()
148 fn into_bytes_v2(&self) -> Vec<u8> { in into_bytes_v2()
161 pub fn from_bytes(bytes: &[u8], version: u32) -> Result<Self, AconfigStorageError> { in from_bytes()
238 pub fn into_bytes(&self) -> Vec<u8> { in into_bytes()
Dlib.rs221 pub(crate) fn get_bucket_index(val: &[u8], num_buckets: u32) -> u32 { in get_bucket_index()
230 pub fn read_u8_from_bytes(buf: &[u8], head: &mut usize) -> Result<u8, AconfigStorageError> { in read_u8_from_bytes()
241 buf: &[u8], in read_u16_from_bytes()
258 pub fn read_u32_from_bytes(buf: &[u8], head: &mut usize) -> Result<u32, AconfigStorageError> { in read_u32_from_bytes()
268 pub fn read_u64_from_bytes(buf: &[u8], head: &mut usize) -> Result<u64, AconfigStorageError> { in read_u64_from_bytes()
279 buf: &[u8], in read_str_from_bytes()
290 pub fn read_file_to_bytes(file_path: &str) -> Result<Vec<u8>, AconfigStorageError> { in read_file_to_bytes()
Dflag_info.rs59 pub fn into_bytes(&self) -> Vec<u8> { in into_bytes()
122 pub fn into_bytes(&self) -> Vec<u8> { in into_bytes()
163 pub fn into_bytes(&self) -> Vec<u8> { in into_bytes()
Dflag_table.rs63 pub fn into_bytes(&self) -> Vec<u8> { in into_bytes()
123 pub fn into_bytes(&self) -> Vec<u8> { in into_bytes()
183 pub fn into_bytes(&self) -> Vec<u8> { in into_bytes()
Dflag_value.rs59 pub fn into_bytes(&self) -> Vec<u8> { in into_bytes()
112 pub fn into_bytes(&self) -> Vec<u8> { in into_bytes()
Dprotos.rs87 pub fn get_binary_proto_from_text_proto(text_proto: &str) -> Result<Vec<u8>> { in get_binary_proto_from_text_proto()
/build/make/tools/aconfig/aconfig_storage_write_api/tests/
Dstorage_write_api_test.rs31 fn get_flag_attribute_at_offset(file: &str, value_type: FlagValueType, offset: u32) -> u8 { in get_flag_attribute_at_offset()
/build/make/tools/aconfig/aconfig/src/
Dcommands.rs74 ) -> Result<Vec<u8>> { in parse_flags()
275 ) -> Result<Vec<u8>> { in create_storage()
281 pub fn create_device_config_defaults(mut input: Input) -> Result<Vec<u8>> { in create_device_config_defaults()
303 pub fn create_device_config_sysprops(mut input: Input) -> Result<Vec<u8>> { in create_device_config_sysprops()
329 ) -> Result<Vec<u8>> { in dump_parsed_flags()
Ddump.rs71 fn dump_custom_format(flag: &ProtoParsedFlag, format: &str, output: &mut Vec<u8>) { in dump_custom_format()