水云居
  • 主页
  • 记录
  • 软件
  • 友情链接

开发

A collection of 2 posts
开发

如何在C#中将float[]快速的转换为byte[]

昨天喻兄抛出一个问题“如何在C#中将float[]快速的转换为byte[]”。于是开始了尝试。先写了下面的初始化代码 using System.Diagnostics; using System.Runtime.InteropServices; Random random = new Random(); //源数组 var srcArray = new float[500 * 1024 * 1024]; //目的数组 var desArraySize = Buffer.ByteLength(srcArray); byte[] desArray = new byte[desArraySize]; //源数组填充随机数据 for (var i = 0; i < srcArray.Length; i++) srcArray[i] = Convert.ToSingle(
18 Jan 2023 3 min read
开发

git代理设置

设置代理 git config --global https.proxy http://127.0.0.1:10809 git config --global https.proxy https://127.0.0.1:10809 git config --global http.proxy 'socks5://127.0.0.1:10808' git config --global https.proxy 'socks5://127.0.0.1:10808' 取消代理
11 Dec 2021
Page 1 of 1
水云居 © 2025
Powered by Ghost

蜀ICP备19022457号-1 川公网安备 51019002002180号