Null record - mandatory length parameter


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 10:36 PM by swordfish


wrote Jan 29, 2010 at 10:36 PM

Resolved with changeset 39319.

swordfish wrote Jan 29, 2010 at 10: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 9:26 PM

wrote May 8, 2013 at 4:52 PM