node icon indicating copy to clipboard operation
node copied to clipboard

[Implement] Buffer#inspect

Open jtenner opened this issue 6 years ago • 3 comments

jtenner avatar Jul 22 '19 18:07 jtenner

@dcodeIO I think this could probably be optimized further but I've hit my limit. Any thoughts?

jtenner avatar Jul 23 '19 14:07 jtenner

This method is the reason why I created the charsFromByte() method. Now we can re-use it here in the .inspect() method.

All set for review @dcodeIO

jtenner avatar Aug 01 '19 17:08 jtenner

Using the new __aspectReflectAs() api, we can log(new ArrayBuffer()) with the inspect output just like node.js outputs Buffers. Will have to revisit this later.

jtenner avatar Mar 13 '20 04:03 jtenner