[api] add simple destroy method for easy disposal of unneeded buffer
[fix] set length of array to 0 as that is the proper way
[test] add tests for destroy method in various cases
[test] tests when writing to a new destination
Merge pull request #6 from jcrugzz/destroy-method

[api] add simple destroy method for easy disposal of unneeded buffer