mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
rename Read / Write into Unmarshal / Marshal when needed
Read() / Write() are used to read / write from streams, while Unmarshal() / Marshal() are used to decode / encode from / to bytes.
This commit is contained in:
@@ -176,7 +176,7 @@ func TestHeaderReadErrors(t *testing.T) {
|
||||
func TestHeaderWrite(t *testing.T) {
|
||||
for _, ca := range casesHeader {
|
||||
t.Run(ca.name, func(t *testing.T) {
|
||||
buf := ca.header.write()
|
||||
buf := ca.header.marshal()
|
||||
require.Equal(t, ca.enc, buf)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user