Note source _ _ redis simple dynamic string SDS

See: Https://Zcheng.Ren/sourcecodeanalysis/tiheannotatedredissourcesds/#sdspasentoE5pasentoB0pasento8FpasentoE7pasentoBBpasento93

 

 

 

Here with char buf [], and the reason is not char * buf convenient memory release

 

Guess you like

Origin www.cnblogs.com/water-bear/p/11611804.html