|
|
@@ -46,6 +46,7 @@ func decodedLen(src []byte) (blockLen, headerLen int, err error) {
|
|
|
// Decode returns the decoded form of src. The returned slice may be a sub-
|
|
|
// slice of dst if dst was large enough to hold the entire decoded block.
|
|
|
// Otherwise, a newly allocated slice will be returned.
|
|
|
+//
|
|
|
// It is valid to pass a nil dst.
|
|
|
func Decode(dst, src []byte) ([]byte, error) {
|
|
|
dLen, s, err := decodedLen(src)
|