Struct CodedOutputStream

Source
#[repr(C, align(8))]
pub struct CodedOutputStream { /* private fields */ }

Implementations§

Source§

impl CodedOutputStream

Source

pub fn HadError(self: Pin<&mut CodedOutputStream>) -> bool

Source

pub fn Trim(self: Pin<&mut CodedOutputStream>)

Source

pub fn Skip(self: Pin<&mut CodedOutputStream>, count: c_int) -> bool

Source

pub fn GetDirectBufferForNBytesAndAdvance( self: Pin<&mut CodedOutputStream>, size: c_int, ) -> *mut u8

Source

pub unsafe fn WriteRaw( self: Pin<&mut CodedOutputStream>, buffer: *const c_void, size: c_int, )

Source

pub unsafe fn WriteRawMaybeAliased( self: Pin<&mut CodedOutputStream>, data: *const c_void, size: c_int, )

Source

pub unsafe fn WriteRawToArray( buffer: *const c_void, size: c_int, target: *mut u8, ) -> *mut u8

Source

pub fn WriteString(self: Pin<&mut CodedOutputStream>, str_: &CxxString)

Source

pub unsafe fn WriteStringToArray(str_: &CxxString, target: *mut u8) -> *mut u8

Source

pub unsafe fn WriteStringWithSizeToArray( str_: &CxxString, target: *mut u8, ) -> *mut u8

Source

pub fn WriteCord(self: Pin<&mut CodedOutputStream>, cord: &Cord)

Source

pub unsafe fn WriteCordToArray(cord: &Cord, target: *mut u8) -> *mut u8

Source

pub unsafe fn WriteLittleEndian32ToArray(value: u32, target: *mut u8) -> *mut u8

Source

pub unsafe fn WriteLittleEndian64ToArray(value: u64, target: *mut u8) -> *mut u8

Source

pub unsafe fn WriteVarint32ToArray(value: u32, target: *mut u8) -> *mut u8

Source

pub unsafe fn WriteVarint32ToArrayOutOfLine( value: u32, target: *mut u8, ) -> *mut u8

Source

pub unsafe fn WriteVarint64ToArray(value: u64, target: *mut u8) -> *mut u8

Source

pub unsafe fn WriteVarint32SignExtendedToArray( value: i32, target: *mut u8, ) -> *mut u8

Source

pub fn WriteTag(self: Pin<&mut CodedOutputStream>, value: u32)

Source

pub unsafe fn WriteTagToArray(value: u32, target: *mut u8) -> *mut u8

Source

pub fn VarintSize32(value: u32) -> usize

Source

pub fn VarintSize64(value: u64) -> usize

Source

pub fn VarintSize32SignExtended(value: i32) -> usize

Source

pub fn VarintSize32PlusOne(value: u32) -> usize

Source

pub fn VarintSize64PlusOne(value: u64) -> usize

Source

pub fn VarintSize32SignExtendedPlusOne(value: i32) -> usize

Source

pub fn ByteCount(self: &CodedOutputStream) -> c_int

Source

pub fn EnableAliasing(self: Pin<&mut CodedOutputStream>, enabled: bool)

Source

pub fn SetSerializationDeterministic( self: Pin<&mut CodedOutputStream>, value: bool, )

Source

pub fn IsSerializationDeterministic(self: &CodedOutputStream) -> bool

Source

pub fn IsDefaultSerializationDeterministic() -> bool

Source§

impl CodedOutputStream

Source

pub fn WriteLittleEndian32(self: Pin<&mut Self>, value: u32)

Source§

impl CodedOutputStream

Source

pub fn WriteLittleEndian64(self: Pin<&mut Self>, value: u64)

Source§

impl CodedOutputStream

Source

pub fn WriteVarint32(self: Pin<&mut Self>, value: u32)

Source§

impl CodedOutputStream

Source

pub fn WriteVarint64(self: Pin<&mut Self>, value: u64)

Source§

impl CodedOutputStream

Source

pub fn WriteVarint32SignExtended(self: Pin<&mut Self>, value: i32)

Source§

impl CodedOutputStream

Source

pub fn Cur(&self) -> *mut u8

Source§

impl CodedOutputStream

Source

pub unsafe fn SetCur(self: Pin<&mut Self>, ptr: *mut u8)

Source§

impl CodedOutputStream

Source

pub fn EpsCopy(self: Pin<&mut Self>) -> *mut EpsCopyOutputStream

Trait Implementations§

Source§

impl Drop for CodedOutputStream

Source§

fn drop(self: &mut CodedOutputStream)

Executes the destructor for this type. Read more
Source§

impl ExternType for CodedOutputStream

Source§

type Id = (g, o, o, g, l, e, (), p, r, o, t, o, b, u, f, (), i, o, (), C, o, d, e, d, O, u, t, p, u, t, S, t, r, e, a, m)

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

type Kind = Opaque

Source§

impl MakeCppStorage for CodedOutputStream

Source§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut CodedOutputStream

Allocates heap space for this type in C++ and return a pointer to that space, but do not initialize that space (i.e. do not yet call a constructor). Read more
Source§

unsafe fn free_uninitialized_cpp_storage(arg0: *mut CodedOutputStream)

Frees a C++ allocation which has not yet had a constructor called. Read more
Source§

impl SharedPtrTarget for CodedOutputStream

Source§

impl UniquePtrTarget for CodedOutputStream

Source§

impl WeakPtrTarget for CodedOutputStream

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.