Skip to content

Commit 2140ef6

Browse files
committed
overview of stream and buffer
1 parent 55f4787 commit 2140ef6

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

buffers-and-streams/buffers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ title: Buffers in depth
44
url: buffers
55
---
66

7-
## Buffers
7+
## Buffers
8+
9+
### Usage
10+
11+
The NodeJS Buffer class is a global class and therefore does not need to be imported into a module.

buffers-and-streams/index.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ The topics that are covered include:
1515

1616
## Buffers and Streams Overview
1717

18-
The NodeJS APIS [Buffer](https://nodejs.org/docs/latest-v10.x/api/buffer.html) and [Stream](https://nodejs.org/docs/latest-v10.x/api/stream.html) are fundamentally seperate topics yet are intrinsically linked. This section will cover how these APIs work individually and with each other.
18+
The Node.js APIS [Buffer](https://nodejs.org/docs/latest-v10.x/api/buffer.html) and [Stream](https://nodejs.org/docs/latest-v10.x/api/stream.html) are fundamentally seperate topics yet are intrinsically linked. This section will cover how these APIs work individually and with each other.
1919

2020
### Buffer
2121

22-
A buffer is a...
22+
The Node.js Buffer class implements buffers which are fixed size chunks of memory outside the V8 heap. Buffers are used to deal with binary data when dealing with TCP streams and reading/writing to the file system.
2323

2424
[Buffers in depth](./buffers.md)
2525

2626
### Stream
2727

28-
A Stream is a....
28+
The Node.js Stream module provides an API for working with streaming data. Streams are a fundamental concept in, and are prevalent throughout applications built on, Node. Streams are an efficient way to handle sending and receiving data particularly for large or indeterminate amounts of data.
2929

3030
[Streams in depth](./streams.md)
3131

@@ -39,8 +39,10 @@ A Stream is a....
3939

4040
## Exercise
4141

42-
## Further Reading
42+
## Terminology
4343

44-
MPJ intro to Streams - YouTube
44+
**Buffer**
4545

46-
Net Ninja intro to Buffers and Streams - YouTube
46+
> In computer science, a data buffer (or just buffer) is a region of a physical memory storage used to temporarily store data while it is being moved from one place to another.
47+
>
48+
> -- <cite>[Wikipedia](https://en.wikipedia.org/wiki/Data_buffer)</cite>

0 commit comments

Comments
 (0)