Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1024467 // Compact Global ID Include

JavaX fragment (include)

long gID_1;
short gID_2;

{ setGlobalID(aGlobalIDObj()); }

void setGlobalID(GlobalID id) {
  if (id == null) ret with gID_1 = gID_2 = 0;
  gID_1 = globalIDPart1(id);
  gID_2 = globalIDPart2(id);
}

void setGlobalID(S id) {
  setGlobalID(toGlobalIDObj(id));
}

GlobalID globalID() {
  ret globalIDFromParts(gID_1, gID_2);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024467
Snippet name: Compact Global ID Include
Eternal ID of this version: #1024467/6
Text MD5: cd22aca82c6c792e8a1ae103e3db2084
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-13 13:14:31
Source code size: 340 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 437
Version history: 5 change(s)
Referenced in: [show references]