# File 'lib/canoser/field.rb', line 92defself.decode(cursor)str=""len=Uint32.decode(cursor)len.timesdostr<<Uint8.decode(cursor)endstrend
.encode(value) ⇒ Object
84
85
86
87
88
89
90
# File 'lib/canoser/field.rb', line 84defself.encode(value)output=""bytes=value.bytesoutput<<Uint32.encode(bytes.size)bytes.each{|x|output<<Canoser::Uint8.encode(x)}outputend