View Source locus_mmdb_data_raw (locus v2.3.11)

API for working with MMDB - raw data representation (it preserves the original type for when it's necessary to distinguish between e.g. {uint32, 0} and {uint16, 0}, which locus_mmdb_data does not allow for.)

Summary

Types

-type array() :: {array, [value()]}.
-type boolean_() :: {boolean, locus_mmdb_data:boolean_()}.
-type bytes() :: {bytes, locus_mmdb_data:bytes()}.
-type double() :: {double, locus_mmdb_data:double()}.
-type float_() :: {float, locus_mmdb_data:float_()}.
-type int32() :: {int32, locus_mmdb_data:int32()}.
-type map_() :: {map, #{locus_mmdb_data:utf8_string() => value()}}.
-type uint16() :: {uint16, locus_mmdb_data:uint16()}.
-type uint32() :: {uint32, locus_mmdb_data:uint32()}.
-type uint64() :: {uint64, locus_mmdb_data:uint64()}.
-type uint128() :: {uint128, locus_mmdb_data:uint128()}.
-type utf8_string() :: {utf8_string, locus_mmdb_data:utf8_string()}.
-type value() ::
    utf8_string() |
    double() |
    bytes() |
    uint16() |
    uint32() |
    map_() |
    int32() |
    uint64() |
    uint128() |
    array() |
    boolean_() |
    float_().
-type value_tag() ::
    pointer | utf8_string | double | bytes | uint16 | uint32 | map | int32 | uint64 | uint128 |
    array | boolean | float.