C#内存相关类型理解

memory access pattern In .NET world, there are three types of memory you may be interested: Managed heap memory, such as an array; Stack memory, such as objects created by stackalloc; Native memory, such as a native pointer reference. Each type of memory access may need to use language features that are designed for it: To access heap memory, use the fixed (pinned) pointer on supported types (like string), or use other appropriate .
Read full post

手机连接windows共享文件夹

长期以来,手机和PC的文件互传能力总是不太令人满意,虽然国产手机厂商在这方面做一了一些努力,但是个人感觉还是不尽如意,并且不够通用。 其实有一个通用的方案,就是SMB协议,ios和android可以通过smb协议连接windows的共享文件夹。iOS13已经原生支持了SMB协议,Android也只需要下载一个SMB客户端就行。

Read full post

面试题汇总

最近参加了数十个公司的后台开发岗位面试,有些面试官问到了一些有意思的题目,个人觉得有必要记录下来,方便以后面试复习。

Read full post