I'm looking to implement a client for the binary protocol.  I take it there 
is no padding between memcached requests, and that the keys are values are 
arbitrary lengths.  So, if I send two requests, and the key for the first 
one is an odd number of bytes, that means the second request will start on 
an odd byte, and the header will be unaligned?

For example, the memcached binary protocol description here uses 'Hello' as 
the key in the example for GET, 

https://code.google.com/p/memcached/wiki/MemcacheBinaryProtocol

so the entire request is 29 bytes long.  This means, if I want to send a 
second request in the same buffer, I need to start the second header at 
offset 29 in my buffer, correct?

The NFS protocol, for example, specifies that any variable length field is 
padded with 0-3 zeros, so that the next field can start on a 32 bit 
boundary.

This isn't a problem for me, but could be for some:

http://blogs.msdn.com/b/oldnewthing/archive/2015/01/16/10586692.aspx


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to