{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/comments/179571249","pull_request_review_id":109840911,"id":179571249,"diff_hunk":"@@ -0,0 +1,153 @@\n+// Copyright 2018 Google LLC.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+#ifndef GOOGLE_CLOUD_CPP_BIGTABLE_CLIENT_INTERNAL_ENDIAN_H_\n+#define GOOGLE_CLOUD_CPP_BIGTABLE_CLIENT_INTERNAL_ENDIAN_H_\n+\n+#include \"bigtable/client/internal/throw_delegate.h\"\n+#include <bitset>\n+#include <limits>\n+#include <vector>\n+\n+#if defined(_MSC_VER)\n+#include <stdlib.h>\n+#else\n+#include <byteswap.h>\n+#endif\n+\n+#include <string>\n+\n+namespace bigtable {\n+inline namespace BIGTABLE_CLIENT_NS {\n+namespace internal {\n+\n+#if defined(_MSC_VER)\n+#define byteswap64 _byteswap_uint64\n+#define byteswap32 _byteswap_ulong\n+#else\n+#define byteswap64 __builtin_bswap64\n+#define byteswap32 __builtin_bswap32\n+#endif\n+\n+constexpr char c[sizeof(int)] = {1};\n+constexpr int i = {1};\n+constexpr bool IsBigEndian() {\n+  return i != c[0];  // ignore different type comparison\n+}\n+\n+typedef std::int64_t bigendian64_t;","path":"bigtable/client/internal/endian.h","position":49,"original_position":49,"commit_id":"605b2cafbcdafe26b0228d0555618f44d05b3b46","original_commit_id":"605b2cafbcdafe26b0228d0555618f44d05b3b46","user":{"login":"hemant-qlogic","id":36054914,"avatar_url":"https://avatars0.githubusercontent.com/u/36054914?v=4","gravatar_id":"","url":"https://api.github.com/users/hemant-qlogic","html_url":"https://github.com/hemant-qlogic","followers_url":"https://api.github.com/users/hemant-qlogic/followers","following_url":"https://api.github.com/users/hemant-qlogic/following{/other_user}","gists_url":"https://api.github.com/users/hemant-qlogic/gists{/gist_id}","starred_url":"https://api.github.com/users/hemant-qlogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemant-qlogic/subscriptions","organizations_url":"https://api.github.com/users/hemant-qlogic/orgs","repos_url":"https://api.github.com/users/hemant-qlogic/repos","events_url":"https://api.github.com/users/hemant-qlogic/events{/privacy}","received_events_url":"https://api.github.com/users/hemant-qlogic/received_events","type":"User","site_admin":false},"body":"File is available now in the latest source\r\nI will implement like that.","created_at":"2018-04-05T19:10:22Z","updated_at":"2018-04-05T19:10:23Z","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-cpp/pull/395#discussion_r179571249","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/395","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/comments/179571249"},"html":{"href":"https://github.com/GoogleCloudPlatform/google-cloud-cpp/pull/395#discussion_r179571249"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/395"}},"in_reply_to_id":179248923},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/395","id":178688626,"html_url":"https://github.com/GoogleCloudPlatform/google-cloud-cpp/pull/395","diff_url":"https://github.com/GoogleCloudPlatform/google-cloud-cpp/pull/395.diff","patch_url":"https://github.com/GoogleCloudPlatform/google-cloud-cpp/pull/395.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/issues/395","number":395,"state":"open","locked":false,"title":"Issue#355: Support for storing std::int64_t directly into Bigtable value","user":{"login":"hemant-qlogic","id":36054914,"avatar_url":"https://avatars0.githubusercontent.com/u/36054914?v=4","gravatar_id":"","url":"https://api.github.com/users/hemant-qlogic","html_url":"https://github.com/hemant-qlogic","followers_url":"https://api.github.com/users/hemant-qlogic/followers","following_url":"https://api.github.com/users/hemant-qlogic/following{/other_user}","gists_url":"https://api.github.com/users/hemant-qlogic/gists{/gist_id}","starred_url":"https://api.github.com/users/hemant-qlogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemant-qlogic/subscriptions","organizations_url":"https://api.github.com/users/hemant-qlogic/orgs","repos_url":"https://api.github.com/users/hemant-qlogic/repos","events_url":"https://api.github.com/users/hemant-qlogic/events{/privacy}","received_events_url":"https://api.github.com/users/hemant-qlogic/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-31T16:03:26Z","updated_at":"2018-04-05T19:10:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67f346f654aa51efc0b4388d3a2beb3afc631d5e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":760104485,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/labels/cla:%20no","name":"cla: no","color":"d93f0b","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/395/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/395/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/issues/395/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/statuses/605b2cafbcdafe26b0228d0555618f44d05b3b46","head":{"label":"hemant-qlogic:bigtable_cell_#355","ref":"bigtable_cell_#355","sha":"605b2cafbcdafe26b0228d0555618f44d05b3b46","user":{"login":"hemant-qlogic","id":36054914,"avatar_url":"https://avatars0.githubusercontent.com/u/36054914?v=4","gravatar_id":"","url":"https://api.github.com/users/hemant-qlogic","html_url":"https://github.com/hemant-qlogic","followers_url":"https://api.github.com/users/hemant-qlogic/followers","following_url":"https://api.github.com/users/hemant-qlogic/following{/other_user}","gists_url":"https://api.github.com/users/hemant-qlogic/gists{/gist_id}","starred_url":"https://api.github.com/users/hemant-qlogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemant-qlogic/subscriptions","organizations_url":"https://api.github.com/users/hemant-qlogic/orgs","repos_url":"https://api.github.com/users/hemant-qlogic/repos","events_url":"https://api.github.com/users/hemant-qlogic/events{/privacy}","received_events_url":"https://api.github.com/users/hemant-qlogic/received_events","type":"User","site_admin":false},"repo":{"id":120637309,"name":"google-cloud-cpp","full_name":"hemant-qlogic/google-cloud-cpp","owner":{"login":"hemant-qlogic","id":36054914,"avatar_url":"https://avatars0.githubusercontent.com/u/36054914?v=4","gravatar_id":"","url":"https://api.github.com/users/hemant-qlogic","html_url":"https://github.com/hemant-qlogic","followers_url":"https://api.github.com/users/hemant-qlogic/followers","following_url":"https://api.github.com/users/hemant-qlogic/following{/other_user}","gists_url":"https://api.github.com/users/hemant-qlogic/gists{/gist_id}","starred_url":"https://api.github.com/users/hemant-qlogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemant-qlogic/subscriptions","organizations_url":"https://api.github.com/users/hemant-qlogic/orgs","repos_url":"https://api.github.com/users/hemant-qlogic/repos","events_url":"https://api.github.com/users/hemant-qlogic/events{/privacy}","received_events_url":"https://api.github.com/users/hemant-qlogic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hemant-qlogic/google-cloud-cpp","description":"Google Cloud Client Library for C++","fork":true,"url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp","forks_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/forks","keys_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/teams","hooks_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/hooks","issue_events_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/issues/events{/number}","events_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/events","assignees_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/assignees{/user}","branches_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/branches{/branch}","tags_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/tags","blobs_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/git/refs{/sha}","trees_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/statuses/{sha}","languages_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/languages","stargazers_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/stargazers","contributors_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/contributors","subscribers_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/subscribers","subscription_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/subscription","commits_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/commits{/sha}","git_commits_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/git/commits{/sha}","comments_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/comments{/number}","issue_comment_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/issues/comments{/number}","contents_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/contents/{+path}","compare_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/merges","archive_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/downloads","issues_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/issues{/number}","pulls_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/pulls{/number}","milestones_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/milestones{/number}","notifications_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/labels{/name}","releases_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/releases{/id}","deployments_url":"https://api.github.com/repos/hemant-qlogic/google-cloud-cpp/deployments","created_at":"2018-02-07T16:01:57Z","updated_at":"2018-04-04T14:30:30Z","pushed_at":"2018-04-04T16:53:27Z","git_url":"git://github.com/hemant-qlogic/google-cloud-cpp.git","ssh_url":"git@github.com:hemant-qlogic/google-cloud-cpp.git","clone_url":"https://github.com/hemant-qlogic/google-cloud-cpp.git","svn_url":"https://github.com/hemant-qlogic/google-cloud-cpp","homepage":"https://cloud.google.com/","size":26291,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"5cf4aa46e8c0e02b77c099e7f1d95685e66fe71d","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":111860063,"name":"google-cloud-cpp","full_name":"GoogleCloudPlatform/google-cloud-cpp","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/google-cloud-cpp","description":"Google Cloud Client Library for C++","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/deployments","created_at":"2017-11-24T00:19:31Z","updated_at":"2018-04-05T17:29:06Z","pushed_at":"2018-04-05T17:49:36Z","git_url":"git://github.com/GoogleCloudPlatform/google-cloud-cpp.git","ssh_url":"git@github.com:GoogleCloudPlatform/google-cloud-cpp.git","clone_url":"https://github.com/GoogleCloudPlatform/google-cloud-cpp.git","svn_url":"https://github.com/GoogleCloudPlatform/google-cloud-cpp","homepage":"https://cloud.google.com/","size":85221,"stargazers_count":19,"watchers_count":19,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":56,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":15,"open_issues":56,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/395"},"html":{"href":"https://github.com/GoogleCloudPlatform/google-cloud-cpp/pull/395"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/issues/395"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/issues/395/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/395/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/pulls/395/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-cpp/statuses/605b2cafbcdafe26b0228d0555618f44d05b3b46"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"hemant-qlogic"}}