Pithies
Last edited
buffer: A buffer is a space set aside in memory for receiving input 1
pointers: Pointers are variables that refer to some location in memory.
methods: Methods are functions that are coupled to some object. Functions that don’t need to specify one of their arguments because the main object is implicit in the function call.
encoding: Text files are just binary files that happen to follow a consistent mapping between bit strings and characters. This mapping is called an encoding.
Q: Why would you set a side space, why not just take a byte and then store it in memory?
A: You need buffers when allocating the space has a cost. In the case of memory, the syscall to allocate space isn’t free, it takes cpu cycles for the kernel, so we should limit this as much as we can given how dynamic the input size is. ↩︎