Closed vschoettke closed 9 years ago
The previous implementation was freeing the memory before it was used which leaded to corrupted data when using blobs.
NanBufferUse automatically frees the memory see https://github.com/rvagg/nan#api_nan_buffer_use
I also added casting to the correct length type (uint32_t) (4 Bytes) from size_t (8 Bytes).
The previous implementation was freeing the memory before it was used which leaded to corrupted data when using blobs.
NanBufferUse automatically frees the memory see https://github.com/rvagg/nan#api_nan_buffer_use
I also added casting to the correct length type (uint32_t) (4 Bytes) from size_t (8 Bytes).