Change 10701

brettb (Brett Bates)
Brett Bates committed this change into //guest/brettb/p4go/rpc
Request Review
Download .zip
Submitting lost decoder

   Decode will take an empty map[string]string and populate it with what is found in the byte array that exists on its io.Reader

   Does the minimal error checking so far, will error if we have an invalid 'magic number' or incorrect length

   Will probably not do anything useful if we are trying to send long message, need to see how we would pass around the content of a 'p4 print' call

   Is up to the caller when to call, would expect the connection to be looping, on read, until we get a func=release ?

   Next up is a proper Msg*::Error implementation, instead of using strings
  • Files 2
  • Comments 0
0 edited 2 added 0 deleted
decoder.go#1
Loading...
decoder_test.go#1
Loading...
Tip: Use n and p to cycle through the changes.