Bnaya / objectbuffer

JavaScript Object like api, backed by an arraybuffer
MIT License
171 stars 5 forks source link

Refactor linkedListItemInsert to return pointer to pointer, and not save value #101

Open Bnaya opened 4 years ago

Bnaya commented 4 years ago

The linkedListItemInsert api accepts nodeValuePointer, and saves it. A better api would be to simply return pointer to pointer and let the caller to do the actual write when he see fits https://github.com/Bnaya/objectbuffer/blob/da30950ea29d734691c7f70490bd662bb9fefbde/src/internal/linkedList/linkedList.ts#L45-L60