{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/22","labels_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/22/comments","events_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/22/events","html_url":"https://github.com/JuliaWeb/GnuTLS.jl/issues/22","id":42428013,"number":22,"title":"readavailable using takebuf_array vs. takebuf_string","user":{"login":"slundberg","id":3740613,"avatar_url":"https://avatars.githubusercontent.com/u/3740613?v=3","gravatar_id":"","url":"https://api.github.com/users/slundberg","html_url":"https://github.com/slundberg","followers_url":"https://api.github.com/users/slundberg/followers","following_url":"https://api.github.com/users/slundberg/following{/other_user}","gists_url":"https://api.github.com/users/slundberg/gists{/gist_id}","starred_url":"https://api.github.com/users/slundberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slundberg/subscriptions","organizations_url":"https://api.github.com/users/slundberg/orgs","repos_url":"https://api.github.com/users/slundberg/repos","events_url":"https://api.github.com/users/slundberg/events{/privacy}","received_events_url":"https://api.github.com/users/slundberg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-09-10T15:49:16Z","updated_at":"2015-02-19T20:39:24Z","closed_at":"2015-02-19T20:39:24Z","body":"The standard readavailable() function in base Julia uses takebuf_string() and so returns a string, however the readavailable() in GnuTLS uses takebuf_array and so returns an array of Uint8 values. This can be a bit confusing, especially since readall() returns a string in both base julia and GnuTLS.\r\n\r\nNot sure if this was an intentional choice, but I wanted to mention it since it took a few minutes to figure why a switching readall() to readavailable() in the given GnuTLS example didn't won't like I expected. Thanks for the great package!"},"comment":{"url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/comments/75131233","html_url":"https://github.com/JuliaWeb/GnuTLS.jl/issues/22#issuecomment-75131233","issue_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/22","id":75131233,"user":{"login":"sbromberger","id":941359,"avatar_url":"https://avatars.githubusercontent.com/u/941359?v=3","gravatar_id":"","url":"https://api.github.com/users/sbromberger","html_url":"https://github.com/sbromberger","followers_url":"https://api.github.com/users/sbromberger/followers","following_url":"https://api.github.com/users/sbromberger/following{/other_user}","gists_url":"https://api.github.com/users/sbromberger/gists{/gist_id}","starred_url":"https://api.github.com/users/sbromberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbromberger/subscriptions","organizations_url":"https://api.github.com/users/sbromberger/orgs","repos_url":"https://api.github.com/users/sbromberger/repos","events_url":"https://api.github.com/users/sbromberger/events{/privacy}","received_events_url":"https://api.github.com/users/sbromberger/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T20:39:24Z","updated_at":"2015-02-19T20:39:24Z","body":"I'll close this out for now (trying to tidy up some old issues) - but please feel free to open a new issue if you'd still like to discuss. Thanks."}}