{"action":"created","issue":{"url":"https://api.github.com/repos/gnuradio/gnuradio/issues/385","labels_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/385/comments","events_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/385/events","html_url":"https://github.com/gnuradio/gnuradio/pull/385","id":58246775,"number":385,"title":"gr-dtv: Add common blocks for DVB-S2 and DVB-T2.","user":{"login":"drmpeg","id":5397196,"avatar_url":"https://avatars.githubusercontent.com/u/5397196?v=3","gravatar_id":"","url":"https://api.github.com/users/drmpeg","html_url":"https://github.com/drmpeg","followers_url":"https://api.github.com/users/drmpeg/followers","following_url":"https://api.github.com/users/drmpeg/following{/other_user}","gists_url":"https://api.github.com/users/drmpeg/gists{/gist_id}","starred_url":"https://api.github.com/users/drmpeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmpeg/subscriptions","organizations_url":"https://api.github.com/users/drmpeg/orgs","repos_url":"https://api.github.com/users/drmpeg/repos","events_url":"https://api.github.com/users/drmpeg/events{/privacy}","received_events_url":"https://api.github.com/users/drmpeg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gnuradio/gnuradio/labels/master","name":"master","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"jmcorgan","id":1492956,"avatar_url":"https://avatars.githubusercontent.com/u/1492956?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcorgan","html_url":"https://github.com/jmcorgan","followers_url":"https://api.github.com/users/jmcorgan/followers","following_url":"https://api.github.com/users/jmcorgan/following{/other_user}","gists_url":"https://api.github.com/users/jmcorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcorgan/subscriptions","organizations_url":"https://api.github.com/users/jmcorgan/orgs","repos_url":"https://api.github.com/users/jmcorgan/repos","events_url":"https://api.github.com/users/jmcorgan/events{/privacy}","received_events_url":"https://api.github.com/users/jmcorgan/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-02-19T18:16:15Z","updated_at":"2015-02-23T12:06:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gnuradio/gnuradio/pulls/385","html_url":"https://github.com/gnuradio/gnuradio/pull/385","diff_url":"https://github.com/gnuradio/gnuradio/pull/385.diff","patch_url":"https://github.com/gnuradio/gnuradio/pull/385.patch"},"body":"Hopefully the directory structure is acceptable."},"comment":{"url":"https://api.github.com/repos/gnuradio/gnuradio/issues/comments/75530628","html_url":"https://github.com/gnuradio/gnuradio/pull/385#issuecomment-75530628","issue_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/385","id":75530628,"user":{"login":"jmcorgan","id":1492956,"avatar_url":"https://avatars.githubusercontent.com/u/1492956?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcorgan","html_url":"https://github.com/jmcorgan","followers_url":"https://api.github.com/users/jmcorgan/followers","following_url":"https://api.github.com/users/jmcorgan/following{/other_user}","gists_url":"https://api.github.com/users/jmcorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcorgan/subscriptions","organizations_url":"https://api.github.com/users/jmcorgan/orgs","repos_url":"https://api.github.com/users/jmcorgan/repos","events_url":"https://api.github.com/users/jmcorgan/events{/privacy}","received_events_url":"https://api.github.com/users/jmcorgan/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T12:06:37Z","updated_at":"2015-02-23T12:06:37Z","body":"Basically, you don't add padding to the structure; you take its size and round up to the nearest power of two when setting itemsize in the io signature.  In work(), you treat the memory as chunks of the power of two itemsize, but you cast it to the original structure, which is shorter, and you just never write to the excess padding.  It's easier than it sounds."}}