```dos.writeInt(key.length())``` ? =)