mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-07-17 22:51:28 +00:00
zoc: Revert unnecessary pub keywords
This commit is contained in:
parent
13f1a3490e
commit
1ce4a40b0f
1 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ use std::ffi::CStr;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
pub struct Data(amd_comgr_data_t);
|
struct Data(amd_comgr_data_t);
|
||||||
|
|
||||||
impl Data {
|
impl Data {
|
||||||
fn new(
|
fn new(
|
||||||
|
@ -22,7 +22,7 @@ impl Data {
|
||||||
self.0
|
self.0
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn copy_content(&self) -> Result<Vec<u8>, amd_comgr_status_s> {
|
fn copy_content(&self) -> Result<Vec<u8>, amd_comgr_status_s> {
|
||||||
let mut size = unsafe { mem::zeroed() };
|
let mut size = unsafe { mem::zeroed() };
|
||||||
unsafe { amd_comgr_get_data(self.get(), &mut size, ptr::null_mut()) }?;
|
unsafe { amd_comgr_get_data(self.get(), &mut size, ptr::null_mut()) }?;
|
||||||
let mut result: Vec<u8> = Vec::with_capacity(size);
|
let mut result: Vec<u8> = Vec::with_capacity(size);
|
||||||
|
@ -32,7 +32,7 @@ impl Data {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct DataSet(amd_comgr_data_set_t);
|
struct DataSet(amd_comgr_data_set_t);
|
||||||
|
|
||||||
impl DataSet {
|
impl DataSet {
|
||||||
fn new() -> Result<Self, amd_comgr_status_s> {
|
fn new() -> Result<Self, amd_comgr_status_s> {
|
||||||
|
@ -49,7 +49,7 @@ impl DataSet {
|
||||||
self.0
|
self.0
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_data(
|
fn get_data(
|
||||||
&self,
|
&self,
|
||||||
kind: amd_comgr_data_kind_t,
|
kind: amd_comgr_data_kind_t,
|
||||||
index: usize,
|
index: usize,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue