code: protected final Map<String,Object> readMapFrom( RawDataBuffer in )
      {
          int mapSize = in.readInt();
          if (mapSize == 0)
          	return null;
          
          Map<String,Object> map = new HashMap<>(Math.max(17,mapSize*4/3));
          for (int n = 0 ; n < mapSize ; n++)
          {
              String propName = in.readUTF();
              Object propValue = in.readGeneric();
              map.put(propName,propValue);
          }
          
          return map;
      }
docs: Write a map to the given output stream