All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalagen.readMap.scala Maven / Gradle / Ivy

The newest version!
val _map = _iprot.readMapBegin()
if (_map.size == 0) {
  _iprot.readMapEnd()
  Map.empty[{{keyType}}, {{valueType}}]
} else {
  val _rv = new mutable$HashMap[{{keyType}}, {{valueType}}]
  var _i = 0
  while (_i < _map.size) {
    val _key = {
  {{#keyReadWriteInfo}}
      {{>readValue}}
  {{/keyReadWriteInfo}}
    }
    val _value = {
  {{#valueReadWriteInfo}}
      {{>readValue}}
  {{/valueReadWriteInfo}}
    }
    _rv(_key) = _value
    _i += 1
  }
  _iprot.readMapEnd()
  _rv
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy