MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / GetSequence

Method GetSequence

extra/yassl/taocrypt/src/asn.cpp:261–272  ·  view source on GitHub ↗

Read a Sequence, return length

Source from the content-addressed store, hash-verified

259
260// Read a Sequence, return length
261word32 BER_Decoder::GetSequence()
262{
263 if (source_.GetError().What()) return 0;
264
265 byte b = source_.next();
266 if (b != (SEQUENCE | CONSTRUCTED)) {
267 source_.SetError(SEQUENCE_E);
268 return 0;
269 }
270
271 return GetLength(source_);
272}
273
274
275// Read a Sequence, return length

Callers 1

GetCompareHashMethod · 0.80

Calls 5

GetLengthFunction · 0.85
WhatMethod · 0.45
GetErrorMethod · 0.45
nextMethod · 0.45
SetErrorMethod · 0.45

Tested by

no test coverage detected