Wikipedia の decltype についての記事を見るのがいいよ!
- 型
T
へのポインタT* p
が指す先をdecltype(*p)
と書くとT&
となる - 型
T
へのconst
ポインタconst T* p
が指す先をdecltype(*p)
と書くとconst T&
となる
/* Original source code courtesy John from iOSDeveloperTips.com */ | |
#include <sys/socket.h> | |
#include <sys/sysctl.h> | |
#include <net/if.h> | |
#include <net/if_dl.h> | |
+ (NSString *)getMacAddress | |
{ | |
int mgmtInfoBase[6]; |
int rgb32_to_i420(int width, int height, const char * src, char * dst) | |
{ | |
unsigned char * dst_y_even; | |
unsigned char * dst_y_odd; | |
unsigned char * dst_u; | |
unsigned char * dst_v; | |
const unsigned char *src_even; | |
const unsigned char *src_odd; | |
int i, j; |
Wikipedia の decltype についての記事を見るのがいいよ!
T
へのポインタ T* p
が指す先を decltype(*p)
と書くと T&
となるT
への const
ポインタ const T* p
が指す先を decltype(*p)
と書くと const T&
となるpackage com.opentok.media.avc; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import android.media.MediaCodec; | |
import android.media.MediaCodecInfo; | |
import android.media.MediaFormat; | |
public class AvcEncoder { |
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"net/mail" | |
"net/smtp" | |
"crypto/tls" | |
) |
日時: | 2017-12-03 |
---|---|
作: | 時雨堂 |
バージョン: | 17.6.30 |
URL: | https://shiguredo.jp/ |
2017 年 6 月 30 日をもって開発/販売を終了しました。
var plugin = JavaScriptPlugin.define( | |
'export-issues', '1.0.0', | |
'Naoki Takezoe', | |
'https://twitter.com/takezoen', | |
'Export issues as JSON from REPO_URL/issues/export.' | |
); | |
plugin.addRepositoryAction('/issues/export', function(request, response, repository){ | |
var issues = plugin.db().select("SELECT * FROM ISSUE WHERE "+ | |
"USER_NAME ='" + repository.owner() + "' AND " + |
#!/bin/bash | |
## Copyright (C) 2015 Cerebral Gardens http://www.cerebralgardens.com/ | |
## | |
## Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
## software and associated documentation files (the "Software"), to deal in the Software | |
## without restriction, including without limitation the rights to use, copy, modify, | |
## merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
## permit persons to whom the Software is furnished to do so, subject to the following | |
## conditions: |
更新: | 2022-03-18 |
---|---|
作者: | @voluntas |
バージョン: | 2022.1 |
URL: | http://voluntas.github.io/ |
func HttpConnect(proxy, url_ string) (io.ReadWriteCloser, error) { | |
p, err := net.Dial("tcp", proxy) | |
if err != nil { | |
return nil, err | |
} | |
turl, err := url.Parse(url_) | |
if err != nil { | |
return nil, err | |
} |