{"action":"created","issue":{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/355","labels_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/355/comments","events_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/355/events","html_url":"https://github.com/michaeledgar/protobuf-net/issues/355","id":58234252,"number":355,"title":"Add DeserializeWithLengthPrefix overload that accepts previously read length prefix as parameter","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-19T16:46:08Z","updated_at":"2015-02-19T16:46:09Z","closed_at":null,"body":"```\nCurrently there are methods TryReadLengthPrefix and \nDeserealizeWithLengthPrefix. But if I first try to read the length prefix (to \nvalidate that following serialized object does not exceed my configured size \nlimits), I then have to seek the stream back before calling \nDeserializeWithLengthPrefix. It would be nice to have and overload of \nDeserializeWithLengthPrefix, that would accept a previously read length prefix \nas parameter. This would improve performance by eliminating unnecessary seek \nand would allow using protobuf on non-seekable streams of protobuf-serialized \nmessages.\n```\n\n-----\nOriginal issue reported on code.google.com by `igor.babichev` on 8 Feb 2013 at 11:27"},"comment":{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/comments/75088091","html_url":"https://github.com/michaeledgar/protobuf-net/issues/355#issuecomment-75088091","issue_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/355","id":75088091,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T16:46:09Z","updated_at":"2015-02-19T16:46:09Z","body":"```\nYou may need to use RuntimeTypeModel.Default.Deserialize - this is the method \nthat Serializer.Serialize calls.\n```\n\n-----\nOriginal comment by `marc.gravell` on 9 Feb 2013 at 1:14"}}