通过位操作简洁的写KB,MB,GB

1 << 10 = KB, 1 << 20 = MB, 1 << 30 = GB ... 所以如果想开一个2KB的buffer,可以写2<<10,比较简洁。
原文地址:https://www.cnblogs.com/fresky/p/2776905.html