MuhammedReza07 / dns_resolver

A simple DNS resolver in Rust written uisng standard library provided functionality.
1 stars 0 forks source link

Set margin argument to 0 by default #15

Closed MuhammedReza07 closed 1 year ago

MuhammedReza07 commented 1 year ago

The margin bound checking argument in write_from_slice and write_domain_name is useless beyond niche implementation applications and should thus be 0 by default.

MuhammedReza07 commented 1 year ago

Impossible to do in Rust, resolved by setting margin to Option instead of usize.