浏览代码

Clarify the expected return value of ajustLength

Vlad Hanciuta 8 年之前
父节点
当前提交
371165d592
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packet_encoder.go

+ 1 - 0
packet_encoder.go

@@ -58,5 +58,6 @@ type dynamicPushEncoder interface {
 	pushEncoder
 	pushEncoder
 
 
 	// Called during pop() to adjust the length of the field.
 	// Called during pop() to adjust the length of the field.
+	// It should return the difference in bytes between the last computed length and current length.
 	adjustLength(currOffset int) int
 	adjustLength(currOffset int) int
 }
 }