#[repr(C)]pub struct dpiBytes {
pub ptr: *mut c_char,
pub length: u32,
pub encoding: *const c_char,
}Expand description
This structure is used for passing byte strings to and from the database in
the structure dpiData.
Fields§
§ptr: *mut c_charSpecifies the pointer to the memory allocated by ODPI-C for the variable. For strings, data written to this memory should be in the encoding appropriate to the type of data being transferred. When data is transferred from the database it will be in the correct encoding already.
length: u32Specifies the length of the byte string, in bytes.
encoding: *const c_charSpecifies the encoding for character data. This value is populated when data is transferred from the database. It is ignored when data is being transferred to the database.
Trait Implementations§
impl Copy for dpiBytes
Auto Trait Implementations§
impl Freeze for dpiBytes
impl RefUnwindSafe for dpiBytes
impl !Send for dpiBytes
impl !Sync for dpiBytes
impl Unpin for dpiBytes
impl UnwindSafe for dpiBytes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more