Struct CodedInputStream

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

Implementations§

Source§

impl CodedInputStream

Source

pub fn IsFlat(self: &CodedInputStream) -> bool

Source

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

Source

pub unsafe fn ReadString( self: Pin<&mut CodedInputStream>, buffer: *mut CxxString, size: c_int, ) -> bool

Source

pub unsafe fn ReadCord( self: Pin<&mut CodedInputStream>, output: *mut Cord, size: c_int, ) -> bool

Source

pub unsafe fn ReadLittleEndian32FromArray( buffer: *const u8, value: *mut u32, ) -> *const u8

Source

pub unsafe fn ReadLittleEndian64FromArray( buffer: *const u8, value: *mut u64, ) -> *const u8

Source

pub fn ReadTagWithCutoff( self: Pin<&mut CodedInputStream>, cutoff: u32, ) -> UniquePtr<std_pair_uint32_t_bool_AutocxxConcrete>

Source

pub fn ReadTagWithCutoffNoLastTag( self: Pin<&mut CodedInputStream>, cutoff: u32, ) -> UniquePtr<std_pair_uint32_t_bool_AutocxxConcrete>

Source

pub unsafe fn ExpectTagFromArray(buffer: *const u8, expected: u32) -> *const u8

Source

pub fn SetLastTag(self: Pin<&mut CodedInputStream>, tag: u32)

Source

pub fn PushLimit(self: Pin<&mut CodedInputStream>, byte_limit: c_int) -> c_int

Source

pub fn PopLimit(self: Pin<&mut CodedInputStream>, limit: c_int)

Source

pub fn BytesUntilLimit(self: &CodedInputStream) -> c_int

Source

pub fn GetDefaultRecursionLimit() -> c_int

Source

pub fn IncrementRecursionDepthAndPushLimit( self: Pin<&mut CodedInputStream>, byte_limit: c_int, ) -> UniquePtr<std_pair_google_protobuf_io_CodedInputStream_Limit_int_AutocxxConcrete>

Source

pub unsafe fn new(input: *mut ZeroCopyInputStream) -> impl New<Output = Self>

Source

pub unsafe fn new1(buffer: *const u8, size: c_int) -> impl New<Output = Self>

Source§

impl CodedInputStream

Source

pub unsafe fn ReadRaw( self: Pin<&mut Self>, buffer: *mut c_void, size: c_int, ) -> bool

Source§

impl CodedInputStream

Source

pub unsafe fn ReadLittleEndian32(self: Pin<&mut Self>, value: *mut u32) -> bool

Source§

impl CodedInputStream

Source

pub unsafe fn ReadLittleEndian64(self: Pin<&mut Self>, value: *mut u64) -> bool

Source§

impl CodedInputStream

Source

pub unsafe fn ReadVarint32(self: Pin<&mut Self>, value: *mut u32) -> bool

Source§

impl CodedInputStream

Source

pub unsafe fn ReadVarint64(self: Pin<&mut Self>, value: *mut u64) -> bool

Source§

impl CodedInputStream

Source

pub unsafe fn ReadVarintSizeAsInt( self: Pin<&mut Self>, value: *mut c_int, ) -> bool

Source§

impl CodedInputStream

Source

pub fn ReadTag(self: Pin<&mut Self>) -> u32

Source§

impl CodedInputStream

Source

pub fn ReadTagNoLastTag(self: Pin<&mut Self>) -> u32

Source§

impl CodedInputStream

Source

pub fn ExpectTag(self: Pin<&mut Self>, expected: u32) -> bool

Source§

impl CodedInputStream

Source

pub fn ExpectAtEnd(self: Pin<&mut Self>) -> bool

Source§

impl CodedInputStream

Source

pub fn LastTagWas(self: Pin<&mut Self>, expected: u32) -> bool

Source§

impl CodedInputStream

Source

pub fn ConsumedEntireMessage(self: Pin<&mut Self>) -> bool

Source§

impl CodedInputStream

Source

pub fn SetConsumed(self: Pin<&mut Self>)

Source§

impl CodedInputStream

Source

pub fn CurrentPosition(&self) -> c_int

Source§

impl CodedInputStream

Source

pub fn SetTotalBytesLimit(self: Pin<&mut Self>, total_bytes_limit: c_int)

Source§

impl CodedInputStream

Source§

impl CodedInputStream

Source

pub fn SetRecursionLimit(self: Pin<&mut Self>, limit: c_int)

Source§

impl CodedInputStream

Source

pub fn RecursionBudget(self: Pin<&mut Self>) -> c_int

Source§

impl CodedInputStream

Source

pub fn IncrementRecursionDepth(self: Pin<&mut Self>) -> bool

Source§

impl CodedInputStream

Source

pub fn DecrementRecursionDepth(self: Pin<&mut Self>)

Source§

impl CodedInputStream

Source

pub fn UnsafeDecrementRecursionDepth(self: Pin<&mut Self>)

Source§

impl CodedInputStream

Source

pub fn ReadLengthAndPushLimit(self: Pin<&mut Self>) -> c_int

Source§

impl CodedInputStream

Source

pub fn DecrementRecursionDepthAndPopLimit( self: Pin<&mut Self>, limit: c_int, ) -> bool

Source§

impl CodedInputStream

Source

pub fn CheckEntireMessageConsumedAndPopLimit( self: Pin<&mut Self>, limit: c_int, ) -> bool

Source§

impl CodedInputStream

Source

pub unsafe fn SetExtensionRegistry( self: Pin<&mut Self>, pool: *const DescriptorPool, factory: *mut MessageFactory, )

Source§

impl CodedInputStream

Source§

impl CodedInputStream

Trait Implementations§

Source§

impl Drop for CodedInputStream

Source§

fn drop(self: &mut CodedInputStream)

Executes the destructor for this type. Read more
Source§

impl ExternType for CodedInputStream

Source§

type Id = (g, o, o, g, l, e, (), p, r, o, t, o, b, u, f, (), i, o, (), C, o, d, e, d, I, n, 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 CodedInputStream

Source§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut CodedInputStream

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 CodedInputStream)

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

impl SharedPtrTarget for CodedInputStream

Source§

impl UniquePtrTarget for CodedInputStream

Source§

impl WeakPtrTarget for CodedInputStream

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.