Home
last modified time | relevance | path

Searched refs:write_to_ashmem (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/commonlibrary/c_utils/base/test/unittest/rust/
H A Drust_utils_ashmem_test.rs321 …assert!(ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid… in test_ashmem_write_read_002()
322 …assert!(ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid… in test_ashmem_write_read_002()
354 …assert!(ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid… in test_ashmem_write_read_003()
361 …assert!(!ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invali… in test_ashmem_write_read_003()
392 …assert!(ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invalid… in test_ashmem_write_read_004()
426 …assert!(!ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invali… in test_ashmem_write_read_005()
488 …assert!(!ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invali… in test_ashmem_invalid_003()
511 …assert!(!ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_CONTENT.len().try_into().expect("Invali… in test_ashmem_invalid_004()
552 …assert!(!ashmem.write_to_ashmem(ptr::null(), MEMORY_CONTENT.len().try_into().expect("Invalid conte… in test_ashmem_invalid_006()
556 assert!(!ashmem.write_to_ashmem(c_content.as_ptr(), MEMORY_SIZE + 1, 0)); in test_ashmem_invalid_006()
[all …]
/ohos5.0/commonlibrary/c_utils/base/src/rust/
H A Dashmem.rs168 pub unsafe fn write_to_ashmem(&self, data: *const c_char, size: i32, offset: i32) -> bool { in write_to_ashmem() method
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc_utils_guide_rust_ashmem.md31 | bool | **write_to_ashmem**(&self, data: *const c_char, size: i32, offset: i32)<br>在ashmem内存区域`off…