Project

General

Profile

Actions

Task #1291

closed

Exception-safe methods to determine size of the TLV block and whether a buffer has enough data for the block

Added by Alex Afanasyev over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
02/25/2014
Due date:
% Done:

100%

Estimated time:

Description

Currently, in all input parsing procedures rely on Block's constructor to either fully construct the block or throw an exception when either there is not enough data in the supplied buffer or (in some constructor versions) if there are more data than necessary.

This task is to create exception-safe method to perform checks before creating actual block. An exception-free version of the Block's constructor can then be used to create actual block, directly supplying its type and length (no additional checks should be performed).


Related issues 1 (0 open1 closed)

Blocks ndn-cxx - Task #1379: Remove reliance on exceptions during TLV decodingClosedAlex Afanasyev03/21/2014

Actions
Actions #1

Updated by Alex Afanasyev over 11 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 100
Actions #2

Updated by Alex Afanasyev over 11 years ago

  • Status changed from In Progress to Code review
Actions #3

Updated by Alex Afanasyev over 11 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF