advise_other.go 254 B

1234567891011121314151617
  1. //go:build (!linux && !tinygo && !windows) || appengine
  2. package msgp
  3. import (
  4. "os"
  5. )
  6. // TODO: darwin, BSD support
  7. func adviseRead(mem []byte) {}
  8. func adviseWrite(mem []byte) {}
  9. func fallocate(f *os.File, sz int64) error {
  10. return f.Truncate(sz)
  11. }