Read a Sequence, return length
| 274 | |
| 275 | // Read a Sequence, return length |
| 276 | word32 BER_Decoder::GetSet() |
| 277 | { |
| 278 | if (source_.GetError().What()) return 0; |
| 279 | |
| 280 | byte b = source_.next(); |
| 281 | if (b != (SET | CONSTRUCTED)) { |
| 282 | source_.SetError(SET_E); |
| 283 | return 0; |
| 284 | } |
| 285 | |
| 286 | return GetLength(source_); |
| 287 | } |
| 288 | |
| 289 | |
| 290 | // Read Version, return it |