mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-05 08:36:55 +08:00
14 lines
373 B
Go
14 lines
373 B
Go
package io
|
|
|
|
import "fmt"
|
|
|
|
// InsufficientBufferError tells the caller that the buffer provided is not sufficient/big
|
|
// enough to hold the whole data/sample.
|
|
type InsufficientBufferError struct {
|
|
RequiredSize int
|
|
}
|
|
|
|
func (e *InsufficientBufferError) Error() string {
|
|
return fmt.Sprintf("provided buffer doesn't meet the size requirement of length, %d", e.RequiredSize)
|
|
}
|