mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +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:
@@ -73,10 +73,10 @@ func TestBodyReadErrors(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestBodyWrite(t *testing.T) {
|
||||
func TestBodyMarshal(t *testing.T) {
|
||||
for _, ca := range casesBody {
|
||||
t.Run(ca.name, func(t *testing.T) {
|
||||
buf := body(ca.byts).write()
|
||||
buf := body(ca.byts).marshal()
|
||||
require.Equal(t, ca.byts, buf)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user