/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/socket/ |
H A D | htonl.c | 12 uint8_t result_bytes[4]; local 13 result_bytes[0] = (uint8_t) ((hostlong >> 24) & 0xFF); 14 result_bytes[1] = (uint8_t) ((hostlong >> 16) & 0xFF); 15 result_bytes[2] = (uint8_t) ((hostlong >> 8) & 0xFF); 16 result_bytes[3] = (uint8_t) (hostlong & 0xFF); 19 memcpy(&result, result_bytes, 4);
|
H A D | htons.c | 12 uint8_t result_bytes[2]; local 13 result_bytes[0] = (uint8_t) ((hostshort >> 8) & 0xFF); 14 result_bytes[1] = (uint8_t) (hostshort & 0xFF); 17 memcpy(&result, result_bytes, 2);
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
H A D | mem_fs_node_test.cc | 81 int result_bytes = 0; local 104 EXPECT_EQ(0, file.Read(attr, buf2, sizeof(buf2), &result_bytes)); 105 EXPECT_EQ(0, result_bytes); 108 EXPECT_EQ(0, file.Write(attr, buf1, sizeof(buf1), &result_bytes)); 109 EXPECT_EQ(sizeof(buf1), result_bytes); local 112 EXPECT_EQ(0, file.Read(attr, buf2, sizeof(buf2), &result_bytes)); 113 EXPECT_EQ(sizeof(buf1), result_bytes); local 123 EXPECT_EQ(ENOTDIR, file.GetDents(0, &d, sizeof(d), &result_bytes)); 152 int result_bytes = 0; local 165 ASSERT_EQ(0, file.Write(attr, data, sizeof(data), &result_bytes)); 166 ASSERT_EQ(sizeof(data), result_bytes); local 175 EXPECT_EQ(sizeof(buffer), result_bytes); local 181 EXPECT_EQ(sizeof(buffer), result_bytes); local 229 int result_bytes = 0; local [all...] |
H A D | http_fs_test.cc | 93 int result_bytes = 0; local 101 EXPECT_EQ(0, node->Read(attr, buf, sizeof(buf) - 1, &result_bytes)); 102 EXPECT_EQ(sizeof(buf) - 1, result_bytes); 107 ASSERT_EQ(0, node->Read(attr, buf, sizeof(buf) - 1, &result_bytes)); 108 ASSERT_EQ(strlen("abcdefg"), result_bytes); 109 buf[result_bytes] = 0; 114 EXPECT_EQ(0, node->Read(attr, &buf[0], sizeof(buf), &result_bytes)); 115 EXPECT_EQ(0, result_bytes); 123 int result_bytes = 0; local 131 EXPECT_EQ(0, node->Read(attr, buf, sizeof(buf) - 1, &result_bytes)); 206 int result_bytes = 0; local [all...] |
H A D | filesystem_test.cc | 53 int result_bytes = 0; local 109 EXPECT_EQ(0, file->Write(attrs, buf1, sizeof(buf1), &result_bytes)); 110 EXPECT_EQ(sizeof(buf1), result_bytes); local 113 EXPECT_EQ(0, file->Read(attrs, buf1, sizeof(buf1), &result_bytes)); 114 EXPECT_EQ(sizeof(buf1), result_bytes); local 181 int result_bytes; local 186 ASSERT_EQ(0, file->Write(attrs, buf, strlen(buf), &result_bytes)); 187 ASSERT_EQ(strlen(buf), result_bytes); local 192 ASSERT_EQ(0, file->Read(attrs, read_buf, sizeof(read_buf), &result_bytes)); 193 ASSERT_EQ(0, result_bytes); 307 int result_bytes = 0; local 319 EXPECT_EQ(strlen(msg), result_bytes); local 332 int result_bytes = 0; local 344 EXPECT_EQ(strlen(msg), result_bytes); local 364 int result_bytes = 0; local 376 EXPECT_EQ(strlen(msg), result_bytes); local [all...] |
/external/chromium_org/native_client_sdk/src/examples/api/socket/ |
H A D | echo_server.cc | 26 uint8_t result_bytes[2]; local 27 result_bytes[0] = (uint8_t) ((hostshort >> 8) & 0xFF); 28 result_bytes[1] = (uint8_t) (hostshort & 0xFF); 31 memcpy(&result, result_bytes, 2);
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/ |
H A D | echo_server.cc | 27 uint8_t result_bytes[2]; local 28 result_bytes[0] = (uint8_t) ((hostshort >> 8) & 0xFF); 29 result_bytes[1] = (uint8_t) (hostshort & 0xFF); 32 memcpy(&result, result_bytes, 2);
|
/external/chromium_org/chrome/browser/extensions/ |
H A D | install_signer.cc | 96 std::string result_bytes(crypto::kSHA256Length, 0); 97 hash->Finish(string_as_array(&result_bytes), result_bytes.size()); 99 base::Base64Encode(result_bytes, result);
|