我要评分
获取效率
正确性
完整性
易理解

JsonElement::getAsShort() const

Function Usage

Uses errno to indicate an invalid call if the JsonElement node is not of the short type, or otherwise, returns the short value.

Function Syntax

short JsonElement::getAsShort() const;

Return Value

  • Success: the short value of the node.
  • Failure: an uninitialized short value.

If the data type of the node is not short, an uninitialized short value is returned.