Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. FilePath fp = new FilePath
  2. {
  3. Path = "TestPath",
  4. RealTimeMultiple = 5.0f
  5. };
  6.  
  7. using (var ms = new MemoryStream())
  8. {
  9. fp.WriteTo(ms);
  10. }
  11.  
  12. using Google.Protobuf;
  13.  
  14. ...
  15.  
  16. byte[] bytes = fp.ToByteArray();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement