Deprecated: Creation of dynamic property wpdb::$categories is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/wp-db.php on line 668

Deprecated: Creation of dynamic property wpdb::$post2cat is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/wp-db.php on line 668

Deprecated: Creation of dynamic property wpdb::$link2cat is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/wp-db.php on line 668

Deprecated: Return type of WP_Theme::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-theme.php on line 554

Deprecated: Return type of WP_Theme::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-theme.php on line 595

Deprecated: Return type of WP_Theme::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-theme.php on line 535

Deprecated: Return type of WP_Theme::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-theme.php on line 544

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/home/bugyo/public_html/b-log/wp-includes/comment-template.php on line 1739

Deprecated: Return type of WP_REST_Request::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-request.php on line 960

Deprecated: Return type of WP_REST_Request::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-request.php on line 980

Deprecated: Return type of WP_REST_Request::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-request.php on line 992

Deprecated: Return type of WP_REST_Request::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-request.php on line 1003

Deprecated: Return type of WP_Block_List::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php on line 151

Deprecated: Return type of WP_Block_List::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php on line 175

Deprecated: Return type of WP_Block_List::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php on line 164

Deprecated: Return type of WP_Block_List::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php on line 186

Deprecated: Return type of WP_Block_List::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php on line 138

Deprecated: Return type of WP_Block_List::offsetExists($index) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php on line 75

Deprecated: Return type of WP_Block_List::offsetGet($index) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php on line 89

Deprecated: Return type of WP_Block_List::offsetSet($index, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php on line 110

Deprecated: Return type of WP_Block_List::offsetUnset($index) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php on line 127

Deprecated: Return type of WP_Block_List::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php on line 199

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php:14) in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-server.php on line 1642

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php:14) in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-server.php on line 1642

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php:14) in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-server.php on line 1642

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php:14) in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-server.php on line 1642

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php:14) in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-server.php on line 1642

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php:14) in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-server.php on line 1642

Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/home/bugyo/public_html/b-log/wp-includes/wp-db.php on line 3030

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php:14) in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-server.php on line 1642

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/bugyo/public_html/b-log/wp-includes/class-wp-block-list.php:14) in /usr/home/bugyo/public_html/b-log/wp-includes/rest-api/class-wp-rest-server.php on line 1642
{"id":762,"date":"2011-10-31T01:16:11","date_gmt":"2011-10-30T16:16:11","guid":{"rendered":"http:\/\/blog.bugyo.tk\/b-log\/?p=762"},"modified":"2011-10-31T01:25:29","modified_gmt":"2011-10-30T16:25:29","slug":"javascript-base64%e3%81%ae%e3%83%87%e3%82%b3%e3%83%bc%e3%83%89","status":"publish","type":"post","link":"https:\/\/blog.bugyo.tk\/b-log\/archives\/762","title":{"rendered":"[JavaScript] Base64\u306e\u30c7\u30b3\u30fc\u30c9"},"content":{"rendered":"

JavaScript\u3067Base64\u3092\u30c7\u30b3\u30fc\u30c9\u3059\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u66f8\u304f\u3002<\/p>\n

\r\nvar b64_table = [\r\n    '\\x00','\\x01','\\x02','\\x03','\\x04','\\x05','\\x06','\\x07',\r\n    '\\x08','\\x09','\\x0A','\\x0B','\\x0C','\\x0D','\\x0E','\\x0F',\r\n    '\\x10','\\x11','\\x12','\\x13','\\x14','\\x15','\\x16','\\x17',\r\n    '\\x18','\\x19','\\x1A','\\x1B','\\x1C','\\x1D','\\x1E','\\x1F',\r\n    '\\x20','\\x21','\\x22','\\x23','\\x24','\\x25','\\x26','\\x27',\r\n    '\\x28','\\x29','\\x2A','\\x2B','\\x2C','\\x2D','\\x2E','\\x2F',\r\n    '\\x30','\\x31','\\x32','\\x33','\\x34','\\x35','\\x36','\\x37',\r\n    '\\x38','\\x39','\\x3A','\\x3B','\\x3C','\\x3D','\\x3E','\\x3F',\r\n    '\\x40','\\x41','\\x42','\\x43','\\x44','\\x45','\\x46','\\x47',\r\n    '\\x48','\\x49','\\x4A','\\x4B','\\x4C','\\x4D','\\x4E','\\x4F',\r\n    '\\x50','\\x51','\\x52','\\x53','\\x54','\\x55','\\x56','\\x57',\r\n    '\\x58','\\x59','\\x5A','\\x5B','\\x5C','\\x5D','\\x5E','\\x5F',\r\n    '\\x60','\\x61','\\x62','\\x63','\\x64','\\x65','\\x66','\\x67',\r\n    '\\x68','\\x69','\\x6A','\\x6B','\\x6C','\\x6D','\\x6E','\\x6F',\r\n    '\\x70','\\x71','\\x72','\\x73','\\x74','\\x75','\\x76','\\x77',\r\n    '\\x78','\\x79','\\x7A','\\x7B','\\x7C','\\x7D','\\x7E','\\x7F',\r\n    '\\x80','\\x81','\\x82','\\x83','\\x84','\\x85','\\x86','\\x87',\r\n    '\\x88','\\x89','\\x8A','\\x8B','\\x8C','\\x8D','\\x8E','\\x8F',\r\n    '\\x90','\\x91','\\x92','\\x93','\\x94','\\x95','\\x96','\\x97',\r\n    '\\x98','\\x99','\\x9A','\\x9B','\\x9C','\\x9D','\\x9E','\\x9F',\r\n    '\\xA0','\\xA1','\\xA2','\\xA3','\\xA4','\\xA5','\\xA6','\\xA7',\r\n    '\\xA8','\\xA9','\\xAA','\\xAB','\\xAC','\\xAD','\\xAE','\\xAF',\r\n    '\\xB0','\\xB1','\\xB2','\\xB3','\\xB4','\\xB5','\\xB6','\\xB7',\r\n    '\\xB8','\\xB9','\\xBA','\\xBB','\\xBC','\\xBD','\\xBE','\\xBF',\r\n    '\\xC0','\\xC1','\\xC2','\\xC3','\\xC4','\\xC5','\\xC6','\\xC7',\r\n    '\\xC8','\\xC9','\\xCA','\\xCB','\\xCC','\\xCD','\\xCE','\\xCF',\r\n    '\\xD0','\\xD1','\\xD2','\\xD3','\\xD4','\\xD5','\\xD6','\\xD7',\r\n    '\\xD8','\\xD9','\\xDA','\\xDB','\\xDC','\\xDD','\\xDE','\\xDF',\r\n    '\\xE0','\\xE1','\\xE2','\\xE3','\\xE4','\\xE5','\\xE6','\\xE7',\r\n    '\\xE8','\\xE9','\\xEA','\\xEB','\\xEC','\\xED','\\xEE','\\xEF',\r\n    '\\xF0','\\xF1','\\xF2','\\xF3','\\xF4','\\xF5','\\xF6','\\xF7',\r\n    '\\xF8','\\xF9','\\xFA','\\xFB','\\xFC','\\xFD','\\xFE','\\xFF'\r\n];\r\n\r\nfunction b64_decode_char(c){\r\n    if('A' <= c && c <= 'Z'){\r\n        return c.charCodeAt(0) - 'A'.charCodeAt(0);\r\n    }\r\n    if('a' <= c && c <= 'z'){\r\n        return c.charCodeAt(0) - 'a'.charCodeAt(0) + 26;\r\n    }\r\n    if('0' <= c && c <= '9'){\r\n        return c.charCodeAt(0) - '0'.charCodeAt(0) + 52;\r\n    }\r\n    if(c == '+'){\r\n        return 62;\r\n    }\r\n    if(c == '\/'){\r\n        return 63;\r\n    }\r\n    if(c == '='){\r\n        return 0;\r\n    }\r\n    error(true, \"invalid base64 character. \" + c);\r\n    return -1;\r\n}\r\n\r\nfunction b64_decode(str){\r\n    var decoded = \"\";\r\n    for(var i=0; i> 16 & 0xff];\r\n        decoded += b64_table[buf >> 8  & 0xff];\r\n        decoded += b64_table[buf       & 0xff];\r\n    }\r\n    var ex = 0;\r\n    if(str.charAt(str.length-1) == '=') ex++;\r\n    if(str.charAt(str.length-2) == '=') ex++;\r\n    if(ex != 0){\r\n        decoded =  decoded.substring(0, decoded.length-ex);\r\n    }\r\n    return decoded;\r\n}\r\n<\/pre>\n

error\u306f\u4e2d\u3067\u4f8b\u5916\u3092\u6295\u3052\u3066\u3044\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

JavaScript\u3067Base64\u3092\u30c7\u30b3\u30fc\u30c9\u3059\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u66f8\u304f\u3002 var b64_table = [ ‘\\x00′,’\\x01′,’\\x02′,’\\x03′,’\\x04′,’\\x05′,’\\x06′,’\\x07’, ‘\\x08′,’\\x09′,’\\x0A’,’\\x0B’,’\\x0C’,’\\x0D’,’\\x0E’,’\\x0F’, ‘\\x10′,’\\x11′,’\\x12′,’\\x13′,’\\x14′,’\\x15′,’\\x16′,’\\x17’, ‘\\x18′,’\\x19′,’\\x1A’,’\\x1B’,’\\x1C’,’\\x1D’,’\\x1E’,’\\x1F’, ‘\\x20′,’\\x21′,’\\x22′,’\\x23′,’\\x24′,’\\x25′,’\\x26′,’\\x27’, ‘\\x28′,’\\x29′,’\\x2A’,’\\x2B’,’\\x2C’,’\\x2D’,’\\x2E’,’\\x2F’, ‘\\x30′,’\\x31′,’\\x32′,’\\x33′,’\\x34′,’\\x35′,’\\x36′,’\\x37’, ‘\\x38′,’\\x39′,’\\x3A’,’\\x3B’,’\\x3C’,’\\x3D’,’\\x3E’,’\\x3F’, ‘\\x40′,’\\x41′,’\\x42′,’\\x43′,’\\x44′,’\\x45′,’\\x46′,’\\x47’, ‘\\x48′,’\\x49′,’\\x4A’,’\\x4B’,’\\x4C’,’\\x4D’,’\\x4E’,’\\x4F’, ‘\\x50′,’\\x51′,’\\x52′,’\\x53′,’\\x54′,’\\x55′,’\\x56′,’\\x57’, ‘\\x58′,’\\x59′,’\\x5A’,’\\x5B’,’\\x5C’,’\\x5D’,’\\x5E’,’\\x5F’, ‘\\x60′,’\\x61′,’\\x62′,’\\x63′,’\\x64′,’\\x65′,’\\x66′,’\\x67’, ‘\\x68′,’\\x69′,’\\x6A’,’\\x6B’,’\\x6C’,’\\x6D’,’\\x6E’,’\\x6F’, ‘\\x70′,’\\x71′,’\\x72′,’\\x73′,’\\x74′,’\\x75′,’\\x76′,’\\x77’, ‘\\x78′,’\\x79′,’\\x7A’,’\\x7B’,’\\x7C’,’\\x7D’,’\\x7E’,’\\x7F’, ‘\\x80′,’\\x81′,’\\x82′,’\\x83′,’\\x84′,’\\x85′,’\\x86′,’\\x87’, ‘\\x88′,’\\x89′,’\\x8A’,’\\x8B’,’\\x8C’,’\\x8D’,’\\x8E’,’\\x8F’, ‘\\x90′,’\\x91′,’\\x92′,’\\x93′,’\\x94′,’\\x95′,’\\x96′,’\\x97’, ‘\\x98′,’\\x99′,’\\x9A’,’\\x9B’,’\\x9C’,’\\x9D’,’\\x9E’,’\\x9F’, ‘\\xA0′,’\\xA1′,’\\xA2′,’\\xA3′,’\\xA4′,’\\xA5′,’\\xA6′,’\\xA7’, ‘\\xA8′,’\\xA9′,’\\xAA’,’\\xAB’,’\\xAC’,’\\xAD’,’\\xAE’,’\\xAF’, ‘\\xB0′,’\\xB1′,’\\xB2′,’\\xB3′,’\\xB4′,’\\xB5′,’\\xB6′,’\\xB7’, ‘\\xB8′,’\\xB9′,’\\xBA’,’\\xBB’,’\\xBC’,’\\xBD’,’\\xBE’,’\\xBF’, ‘\\xC0′,’\\xC1′,’\\xC2′,’\\xC3′,’\\xC4′,’\\xC5′,’\\xC6′,’\\xC7’, ‘\\xC8′,’\\xC9′,’\\xCA’,’\\xCB’,’\\xCC’,’\\xCD’,’\\xCE’,’\\xCF’, ‘\\xD0′,’\\xD1′,’\\xD2′,’\\xD3′,’\\xD4′,’\\xD5′,’\\xD6′,’\\xD7’, ‘\\xD8′,’\\xD9′,’\\xDA’,’\\xDB’,’\\xDC’,’\\xDD’,’\\xDE’,’\\xDF’, ‘\\xE0′,’\\xE1′,’\\xE2′,’\\xE3′,’\\xE4′,’\\xE5′,’\\xE6′,’\\xE7’, ‘\\xE8′,’\\xE9′,’\\xEA’,’\\xEB’,’\\xEC’,’\\xED’,’\\xEE’,’\\xEF’, ‘\\xF0′,’\\xF1′,’\\xF2′,’\\xF3′,’\\xF4′,’\\xF5′,’\\xF6′,’\\xF7’, ‘\\xF8′,’\\xF9′,’\\xFA’,’\\xFB’,’\\xFC’,’\\xFD’,’\\xFE’,’\\xFF’ ]; function b64_decode_char(c){ Continue reading [JavaScript] Base64\u306e\u30c7\u30b3\u30fc\u30c9<\/span>→<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[266,265,267],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.bugyo.tk\/b-log\/wp-json\/wp\/v2\/posts\/762"}],"collection":[{"href":"https:\/\/blog.bugyo.tk\/b-log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bugyo.tk\/b-log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bugyo.tk\/b-log\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bugyo.tk\/b-log\/wp-json\/wp\/v2\/comments?post=762"}],"version-history":[{"count":3,"href":"https:\/\/blog.bugyo.tk\/b-log\/wp-json\/wp\/v2\/posts\/762\/revisions"}],"predecessor-version":[{"id":765,"href":"https:\/\/blog.bugyo.tk\/b-log\/wp-json\/wp\/v2\/posts\/762\/revisions\/765"}],"wp:attachment":[{"href":"https:\/\/blog.bugyo.tk\/b-log\/wp-json\/wp\/v2\/media?parent=762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bugyo.tk\/b-log\/wp-json\/wp\/v2\/categories?post=762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bugyo.tk\/b-log\/wp-json\/wp\/v2\/tags?post=762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}