0

Closed

Null record - mandatory length parameter

description

IResourceRecord only defines a single argument for the Parse method.
 
A solution might be overloading the Parse method in the interface, but than all the other recource records have empty Parse method bodies for the overload.
A better solution would be that the NULL record itself can determine what it's length is.
Closed Jan 29, 2010 at 11:36 PM by swordfish

comments

wrote Jan 29, 2010 at 11:36 PM

Resolved with changeset 39319.

swordfish wrote Jan 29, 2010 at 11:38 PM

Change Parse signature so that all resource records get the length argument. However most implementations ignore the length.
However in future it might be used to prevent the record to much information from the stream.

wrote Jan 31, 2013 at 10:26 PM

wrote May 8, 2013 at 5:52 PM