{"action":"created","issue":{"url":"https://api.github.com/repos/chadaustin/buffer-builder/issues/8","labels_url":"https://api.github.com/repos/chadaustin/buffer-builder/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/chadaustin/buffer-builder/issues/8/comments","events_url":"https://api.github.com/repos/chadaustin/buffer-builder/issues/8/events","html_url":"https://github.com/chadaustin/buffer-builder/issues/8","id":94143799,"number":8,"title":"Would it be possible to view current buffer usage?","user":{"login":"iand675","id":69209,"avatar_url":"https://avatars.githubusercontent.com/u/69209?v=3","gravatar_id":"","url":"https://api.github.com/users/iand675","html_url":"https://github.com/iand675","followers_url":"https://api.github.com/users/iand675/followers","following_url":"https://api.github.com/users/iand675/following{/other_user}","gists_url":"https://api.github.com/users/iand675/gists{/gist_id}","starred_url":"https://api.github.com/users/iand675/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iand675/subscriptions","organizations_url":"https://api.github.com/users/iand675/orgs","repos_url":"https://api.github.com/users/iand675/repos","events_url":"https://api.github.com/users/iand675/events{/privacy}","received_events_url":"https://api.github.com/users/iand675/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-09T20:19:37Z","updated_at":"2015-07-10T06:33:32Z","closed_at":null,"body":"I've got some code where the buffered value needs to exceed 1MB before being flushed over the network, and I'm currently having to do my own bookkeeping of the size. I'm pretty sure that the builder tracks its utilization under the hood, so would it be realistic to make that data publicly accessible?"},"comment":{"url":"https://api.github.com/repos/chadaustin/buffer-builder/issues/comments/120248208","html_url":"https://github.com/chadaustin/buffer-builder/issues/8#issuecomment-120248208","issue_url":"https://api.github.com/repos/chadaustin/buffer-builder/issues/8","id":120248208,"user":{"login":"chadaustin","id":59987,"avatar_url":"https://avatars.githubusercontent.com/u/59987?v=3","gravatar_id":"","url":"https://api.github.com/users/chadaustin","html_url":"https://github.com/chadaustin","followers_url":"https://api.github.com/users/chadaustin/followers","following_url":"https://api.github.com/users/chadaustin/following{/other_user}","gists_url":"https://api.github.com/users/chadaustin/gists{/gist_id}","starred_url":"https://api.github.com/users/chadaustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadaustin/subscriptions","organizations_url":"https://api.github.com/users/chadaustin/orgs","repos_url":"https://api.github.com/users/chadaustin/repos","events_url":"https://api.github.com/users/chadaustin/events{/privacy}","received_events_url":"https://api.github.com/users/chadaustin/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T06:33:32Z","updated_at":"2015-07-10T06:33:32Z","body":"Hi @iand675, good suggestion.  I uploaded buffer-builder 0.2.3.0 to hackage with the ability to return non-unit from BufferBuilder and add the ability to read the current length with \"currentLength\".\r\n\r\nDoes that help?\r\n\r\nFor the details, see https://github.com/chadaustin/buffer-builder/commit/c93802dea07b2d7d50bc3b08d30db9db17bf4312"}}