max_length = 16,
129 size_tmax_bytes = 1024*1024)
override;
132 virtual void ReadNull(
void)
override;
135 voidSkipAnyContent(
void);
143 virtual bool ReadBool(
void)
override;
144 virtual char ReadChar(
void)
override;
157 virtual void SkipBool(
void)
override;
158 virtual void SkipChar(
void)
override;
164 virtual void SkipNull(
void)
override;
167 #ifdef VIRTUAL_MID_LEVEL_IO 198 virtual void EndClass(
void)
override;
205 virtual void EndChoice(
void)
override;
220 voidResetThisState(
void);
231 boolSkipRealValue(
void);
233 #if CHECK_INSTREAM_STATE 258ETagState m_CurrentTagState;
260 #if CHECK_INSTREAM_LIMITS 261 Int8m_CurrentTagLimit;
262stack<Int8> m_Limits;
279 TByteexpected_class_byte);
280 voidUnexpectedTagClassByte(
TBytefirst_tag_byte,
281 TByteexpected_class_byte);
282 voidUnexpectedShortLength(
size_tgot_length,
283 size_texpected_length);
284 voidUnexpectedFixedLength(
void);
285 voidUnexpectedContinuation(
void);
286 voidUnexpectedLongLength(
void);
291 stringPeekClassTag(
void);
292 TBytePeekAnyTagFirstByte(
void);
295 stringTagToString(
TByte byte);
296 voidUnexpectedSysTagByte(
TByte byte);
321 size_tReadLengthLong(
TByte byte);
335 voidSkipBytes(
size_t count);
337 voidReadStringValue(
size_tlength,
string& s,
EFixNonPrintfix_type);
338 voidSkipTagData(
void);
341 voidUnexpectedByte(
TByte byte);
342 voidGetTagPattern(vector<int>& pattern,
size_tmax_length);
pair< size_t, bool > ReadBytes(CStreamBuffer &b, char *dst, size_t length)
void ReadString(CStreamBuffer &b)
CNcbiIstream & ReadContainer(CNcbiIstream &is, TCont &cont)
Read a container from a stream.
Serializable object that stores any combination of parsable data.
CObjectIStreamAsnBinary â.
CObjectOStreamAsnBinary â.
CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...
Include a standard set of the NCBI C++ Toolkit most basic headers.
NLM_EXTERN Nlm_CharPtr LIBCALL SkipChar(char FAR *theString, char Char)
static const char * str(char *buf, int n)
#define NCBI_DEPRECATED_CTOR(decl)
Macro used to mark a constructor as deprecated.
EFixNonPrint
How to process non-printing character in the ASN VisibleString.
size_t TMemberIndex
Type used for indexing class members and choice variants.
@ eStringTypeVisible
VisibleString (in ASN.1 sense)
vector< Int8 > m_DataLimits
void ExpectContainer(bool random)
virtual void ReadStringStore(string &s)
virtual EPointerType ReadPointerType(void)=0
virtual bool ReadBool(void)=0
void ExpectByte(Uint1 byte)
virtual void EndClassMember(void)
void ExpectSysTagByte(TByte byte)
virtual set< TTypeInfo > GuessDataType(const set< TTypeInfo > &known_types, size_t max_length=16, size_t max_bytes=1024 *1024)
Identify the type of data in the stream.
TByte StartTag(TByte first_tag_byte)
MLIOVIR void ReadClassSequential(const CClassTypeInfo *classType, TObjectPtr classPtr)
size_t ReadShortLength(void)
MLIOVIR void SkipChoiceSimple(const CChoiceTypeInfo *choiceType)
virtual void BeginContainer(const CContainerTypeInfo *containerType) override
virtual void ReadNull(void)=0
void ExpectIntegerTag(void)
bool PeekIndefiniteLength(void)
virtual void EndBytes(const ByteBlock &block)
TLongTag PeekTag(TByte first_tag_byte, ETagClass tag_class, ETagConstructed tag_constructed)
virtual void SkipByteBlock(void)=0
virtual TMemberIndex BeginClassMember(const CClassTypeInfo *classType)=0
virtual size_t ReadChars(CharBlock &block, char *buffer, size_t count)=0
virtual string ReadOtherPointer(void)=0
virtual void SkipString(EStringType type=eStringTypeVisible)=0
virtual void SkipFNumber(void)=0
virtual void ReadOtherPointerEnd(void)
virtual void BeginBytes(ByteBlock &block)=0
void ExpectSysTag(ETagClass tag_class, ETagConstructed tag_constructed, ETagValue tag_value)
virtual void BeginNamedType(TTypeInfo namedTypeInfo)
virtual double ReadDouble(void)=0
virtual void ResetState(void) override
virtual void SkipBool(void)=0
void ExpectSysTag(ETagValue tag_value)
void ExpectTagClassByte(TByte first_tag_byte, TByte expected_class_byte)
size_t ReadLengthInlined(void)
virtual void EndNamedType(void)
virtual TMemberIndex BeginChoiceVariant(const CChoiceTypeInfo *choiceType)=0
void ExpectShortLength(size_t length)
virtual void SkipSNumber(void)=0
bool HaveMoreElements(void)
virtual void SkipUNumber(void)=0
virtual Uint4 ReadUint4(void)
virtual char * ReadCString(void)
virtual void SkipAnyContentVariant(void)
virtual void SkipNull(void)=0
virtual void SkipStringStore(void)
virtual void BeginChars(CharBlock &block)=0
virtual void ReadPackedString(string &s, CPackString &pack_string, EStringType type=eStringTypeVisible)
TByte PeekByte(size_t index=0)
void ExpectTag(TByte first_tag_byte, ETagClass tag_class, ETagConstructed tag_constructed, TLongTag tag_value)
virtual char ReadChar(void)=0
virtual void SkipPointer(TTypeInfo declaredType)
virtual void ReadAnyContentObject(CAnyContentObject &obj)=0
size_t m_CurrentTagLength
virtual bool BeginContainerElement(TTypeInfo elementType) override
MLIOVIR void ReadChoiceSimple(const CChoiceTypeInfo *choiceType, TObjectPtr choicePtr)
virtual void ReadBitString(CBitString &obj)=0
virtual pair< TObjectPtr, TTypeInfo > ReadPointer(TTypeInfo declaredType)
virtual void SkipBitString(void)=0
TByte PeekTagByte(size_t index=0)
void ExpectEndOfContent(void)
virtual TEnumValueType ReadEnum(const CEnumeratedTypeValues &values)=0
size_t StartTagData(size_t length)
MLIOVIR void ReadNamedType(TTypeInfo namedTypeInfo, TTypeInfo typeInfo, TObjectPtr object)
virtual Int8 ReadInt8(void)=0
virtual TObjectIndex ReadObjectPointer(void)=0
MLIOVIR void SkipContainer(const CContainerTypeInfo *containerType)
MLIOVIR void SkipClassSequential(const CClassTypeInfo *classType)
virtual Int4 ReadInt4(void)
virtual void SkipAnyContentObject(void)=0
TLongTag PeekTag(TByte first_tag_byte)
void ExpectIndefiniteLength(void)
virtual Uint8 ReadUint8(void)=0
virtual void EndClass(void)
virtual void EndChoiceVariant(void)
virtual void BeginClass(const CClassTypeInfo *classInfo)=0
virtual void EndChars(const CharBlock &block)
virtual void EndContainer(void) override
void ExpectTag(ETagClass tag_class, ETagConstructed tag_constructed, TLongTag tag_value)
virtual void EndChoice(void)
MLIOVIR void SkipClassRandom(const CClassTypeInfo *classType)
MLIOVIR void SkipNamedType(TTypeInfo namedTypeInfo, TTypeInfo typeInfo)
virtual void BeginChoice(const CChoiceTypeInfo *choiceType)
MLIOVIR void ReadClassRandom(const CClassTypeInfo *classType, TObjectPtr classPtr)
uint8_t Uint1
1-byte (8-bit) unsigned integer
int32_t Int4
4-byte (32-bit) signed integer
uint32_t Uint4
4-byte (32-bit) unsigned integer
int64_t Int8
8-byte (64-bit) signed integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
int8_t Int1
1-byte (8-bit) signed integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
enum ENcbiOwnership EOwnership
Ownership relations between objects.
#define NCBI_XSERIAL_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
std::istream & in(std::istream &in_, double &x_)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4