Home | History | Annotate | Download | only in io

Lines Matching defs:CodedInputStream

35 // This file contains the CodedInputStream and CodedOutputStream classes,
66 // CodedInputStream example:
70 // CodedInputStream coded_input = new CodedInputStream(raw_input);
142 class CodedInputStream;
151 // Most users will not need to deal with CodedInputStream.
153 // Most methods of CodedInputStream that return a bool return false if an
155 // failure occurs, the CodedInputStream is broken and is no longer useful.
156 class LIBPROTOBUF_EXPORT CodedInputStream {
158 // Create a CodedInputStream that reads from the given ZeroCopyInputStream.
159 explicit CodedInputStream(ZeroCopyInputStream* input);
161 // Create a CodedInputStream that reads from the given flat array. This is
164 explicit CodedInputStream(const uint8* buffer, int size);
166 // Destroy the CodedInputStream and position the underlying
171 ~CodedInputStream();
173 // Return true if this CodedInputStream reads from a flat array instead of
181 // Sets *data to point directly at the unread part of the CodedInputStream's
187 // types of data not covered by the CodedInputStream interface.
289 // the CodedInputStream from reading beyond that length. Once the
324 // and causing integer overflows or memory exhaustion, CodedInputStream
327 // Sets the maximum number of bytes that this CodedInputStream will read
349 // your code never constructs a CodedInputStream on which the limit
353 // (e.g. an ArrayInputStream), construct a CodedInputStream around
362 // messages and groups. CodedInputStream keeps track of this because it
456 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CodedInputStream);
757 inline bool CodedInputStream::ReadVarint32(uint32* value) {
767 inline bool CodedInputStream::ReadVarint64(uint64* value) {
778 inline const uint8* CodedInputStream::ReadLittleEndian32FromArray(
793 inline const uint8* CodedInputStream::ReadLittleEndian64FromArray(
814 inline bool CodedInputStream::ReadLittleEndian32(uint32* value) {
828 inline bool CodedInputStream::ReadLittleEndian64(uint64* value) {
842 inline uint32 CodedInputStream::ReadTag() {
853 inline bool CodedInputStream::LastTagWas(uint32 expected) {
857 inline bool CodedInputStream::ConsumedEntireMessage() {
861 inline bool CodedInputStream::ExpectTag(uint32 expected) {
884 inline const uint8* CodedInputStream::ExpectTagFromArray(
899 inline void CodedInputStream::GetDirectBufferPointerInline(const void** data,
905 inline bool CodedInputStream::ExpectAtEnd() {
920 inline int CodedInputStream::CurrentPosition() const {
1041 inline void CodedInputStream::Advance(int amount) {
1050 inline void CodedInputStream::SetRecursionLimit(int limit) {
1054 inline bool CodedInputStream::IncrementRecursionDepth() {
1059 inline void CodedInputStream::DecrementRecursionDepth() {
1063 inline void CodedInputStream::SetExtensionRegistry(const DescriptorPool* pool,
1069 inline const DescriptorPool* CodedInputStream::GetExtensionPool() {
1073 inline MessageFactory* CodedInputStream::GetExtensionFactory() {
1077 inline int CodedInputStream::BufferSize() const {
1081 inline CodedInputStream::CodedInputStream(ZeroCopyInputStream* input)
1102 inline CodedInputStream::CodedInputStream(const uint8* buffer, int size)
1123 inline bool CodedInputStream::IsFlat() const {