length = len(data)
buff.write(_struct_I.pack(length))
for val0 in data:
  length = len(val0)
  if python3 or type(val0) == unicode:
    val0 = val0.encode('utf-8')
    length = len(val0)
  buff.write(struct.Struct('<I%ss'%length).pack(length, val0))
