buffer: misc logic simplification
Includes: * No need for `typeof` when checking undefined. * length is coerced to uint so no need to check if < 0. * Stay consistent and always throw `new` errors. * Returning offset + magic number in every write is error prone. Instead return the central write function which returns the correct offset.
parent
d74932e5
Please register or sign in to comment