lib/identifiers.js
function lengthInBytes(type) {
  switch(type) {
    case TYPE_UNKNOWN:
      return LENGTH_UNKNOWN;
    case TYPE_EUI64:
      return LENGTH_EUI64;
    case TYPE_EUI48:
      return LENGTH_EUI48;
    case TYPE_RND48:
      return LENGTH_RND48;
    default:
      return null;
  }
}
function lengthInBytes(type) {
  switch(type) {
    case TYPE_UNKNOWN:
      return LENGTH_UNKNOWN;
    case TYPE_EUI64:
      return LENGTH_EUI64;
    case TYPE_EUI48:
      return LENGTH_EUI48;
    case TYPE_RND48:
      return LENGTH_RND48;
    default:
      return null;
  }
}
function lengthInBytes ( type ) { switch ( type ) { case TYPE_UNKNOWN : return LENGTH_UNKNOWN ; case TYPE_EUI64 : return LENGTH_EUI64 ; case TYPE_EUI48 : return LENGTH_EUI48 ; case TYPE_RND48 : return LENGTH_RND48 ; default : return null ; } }
Return the length in bytes of the given identifier type.
@param {Number} identifier The given identifier type.
@return {Number} The length of the identifier in bytes.
Return the length in bytes of the given identifier type .