Skip to content

Instantly share code, notes, and snippets.

@AlexcastroDev
Created April 17, 2023 20:56
Show Gist options
  • Save AlexcastroDev/4719e61a5cf52f7d6ce0ffe641a29f93 to your computer and use it in GitHub Desktop.
Save AlexcastroDev/4719e61a5cf52f7d6ce0ffe641a29f93 to your computer and use it in GitHub Desktop.
streams_question_linux_foundation
12_streams git:(main) ✗ node 8_kb_data.js
read chunk <Buffer 4e 61 6d 65 2c 41 67 65 2c 4c 6f 63 61 74 69 6f 6e 0a 42 75 64 64 79 2c 35 2c 4e 65 77 20 59 6f 72 6b 0a 4c 75 63 6b 79 2c 32 2c 4c 6f 73 20 41 6e 67 ... 8287 more bytes>
stop reading
12_streams git:(main) ✗ node 16_kb_data.js
read chunk <Buffer 4e 61 6d 65 2c 41 67 65 2c 4c 6f 63 61 74 69 6f 6e 0a 42 75 64 64 79 2c 35 2c 4e 65 77 20 59 6f 72 6b 0a 4c 75 63 6b 79 2c 32 2c 4c 6f 73 20 41 6e 67 ... 17332 more bytes> 17382
stop reading
➜ 12_streams git:(main) ✗ node 128_kb_data.js
read chunk <Buffer 4e 61 6d 65 2c 41 67 65 2c 4c 6f 63 61 74 69 6f 6e 0a 42 75 64 64 79 2c 35 2c 4e 65 77 20 59 6f 72 6b 0a 4c 75 63 6b 79 2c 32 2c 4c 6f 73 20 41 6e 67 ... 65486 more bytes> 65536
read chunk <Buffer 48 6f 75 73 74 6f 6e 0a 43 68 61 72 6c 69 65 2c 36 2c 50 68 69 6c 61 64 65 6c 70 68 69 61 0a 44 61 69 73 79 2c 32 2c 50 68 6f 65 6e 69 78 0a 52 6f 63 ... 65486 more bytes> 65536
read chunk <Buffer 61 6e 20 44 69 65 67 6f> 8
stop reading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment