#[repr(C)]pub struct dpiEncodingInfo {
pub encoding: *const c_char,
pub maxBytesPerCharacter: i32,
pub nencoding: *const c_char,
pub nmaxBytesPerCharacter: i32,
}Expand description
This structure is used for transferring encoding information from ODPI-C. All of
the information here remains valid as long as a reference is held to the
standalone connection (by calling dpiConn_getEncodingInfo()) or session
pool (by calling dpiPool_getEncodingInfo()) from which the information
was taken.
Fields§
§encoding: *const c_charThe encoding used for CHAR data, as a null-terminated ASCII string.
maxBytesPerCharacter: i32The maximum number of bytes required for each character in the encoding used for CHAR data. This value is used when calculating the size of buffers required when lengths in characters are provided.
nencoding: *const c_charThe encoding used for NCHAR data, as a null-terminated ASCII string.
nmaxBytesPerCharacter: i32The maximum number of bytes required for each character in the encoding used for NCHAR data. Since this information is not directly available from Oracle it is only accurate if the encodings used for CHAR and NCHAR data are identical or one of ASCII or UTF-8; otherwise a value of 4 is assumed. This value is used when calculating the size of buffers required when lengths in characters are provided.
Trait Implementations§
Source§impl Clone for dpiEncodingInfo
impl Clone for dpiEncodingInfo
Source§fn clone(&self) -> dpiEncodingInfo
fn clone(&self) -> dpiEncodingInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more