func (_m *Writer) Write(p []byte) (int, error) {
    ret := _m.Called(p)

    var r0 int
    if rf, ok := ret.Get(0).(func([]byte) int); ok {