{"action":"closed","issue":{"url":"https://api.github.com/repos/dmendel/bindata/issues/74","repository_url":"https://api.github.com/repos/dmendel/bindata","labels_url":"https://api.github.com/repos/dmendel/bindata/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/dmendel/bindata/issues/74/comments","events_url":"https://api.github.com/repos/dmendel/bindata/issues/74/events","html_url":"https://github.com/dmendel/bindata/issues/74","id":162271595,"number":74,"title":"Question: Modifying nested variable length record","user":{"login":"hopesea","id":6063467,"avatar_url":"https://avatars.githubusercontent.com/u/6063467?v=3","gravatar_id":"","url":"https://api.github.com/users/hopesea","html_url":"https://github.com/hopesea","followers_url":"https://api.github.com/users/hopesea/followers","following_url":"https://api.github.com/users/hopesea/following{/other_user}","gists_url":"https://api.github.com/users/hopesea/gists{/gist_id}","starred_url":"https://api.github.com/users/hopesea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hopesea/subscriptions","organizations_url":"https://api.github.com/users/hopesea/orgs","repos_url":"https://api.github.com/users/hopesea/repos","events_url":"https://api.github.com/users/hopesea/events{/privacy}","received_events_url":"https://api.github.com/users/hopesea/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dmendel/bindata/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"dmendel","id":38263,"avatar_url":"https://avatars.githubusercontent.com/u/38263?v=3","gravatar_id":"","url":"https://api.github.com/users/dmendel","html_url":"https://github.com/dmendel","followers_url":"https://api.github.com/users/dmendel/followers","following_url":"https://api.github.com/users/dmendel/following{/other_user}","gists_url":"https://api.github.com/users/dmendel/gists{/gist_id}","starred_url":"https://api.github.com/users/dmendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmendel/subscriptions","organizations_url":"https://api.github.com/users/dmendel/orgs","repos_url":"https://api.github.com/users/dmendel/repos","events_url":"https://api.github.com/users/dmendel/events{/privacy}","received_events_url":"https://api.github.com/users/dmendel/received_events","type":"User","site_admin":false},"assignees":[{"login":"dmendel","id":38263,"avatar_url":"https://avatars.githubusercontent.com/u/38263?v=3","gravatar_id":"","url":"https://api.github.com/users/dmendel","html_url":"https://github.com/dmendel","followers_url":"https://api.github.com/users/dmendel/followers","following_url":"https://api.github.com/users/dmendel/following{/other_user}","gists_url":"https://api.github.com/users/dmendel/gists{/gist_id}","starred_url":"https://api.github.com/users/dmendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmendel/subscriptions","organizations_url":"https://api.github.com/users/dmendel/orgs","repos_url":"https://api.github.com/users/dmendel/repos","events_url":"https://api.github.com/users/dmendel/events{/privacy}","received_events_url":"https://api.github.com/users/dmendel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-06-25T08:52:18Z","updated_at":"2016-07-07T05:08:56Z","closed_at":"2016-07-07T05:08:56Z","body":"Hi,\r\n\r\nIf I have a parent record which can contain variable nested record types, e.g. \r\n\r\n```\r\nclass MetadataBlock < BinData::Record\r\n  public \r\n  endian :big\r\n  uint8 :block_type\r\n  buffer :content, :length => :content_len do\r\n    choice :content, :selection => :block_type do\r\n      block_type1 0\r\n      block_type2 1\r\n      :\r\n      :\r\n    end\r\n  end\r\nend\r\n```\r\nThe outer record type defines the length of the nested record type. If the nested record type contains an array, for example, and I increase the size of that array, how can a communicate the increase of the nested record's size to the parent (outer) record so that when the data are written they reflect the size of the increased structure?\r\n\r\nThanks,\r\nSean"}}
{"actor":{"display_login":"dmendel"}}