mirror of
https://github.com/tjboldt/ProDOS-Utilities.git
synced 2024-12-01 01:49:59 +00:00
14 lines
171 B
Go
14 lines
171 B
Go
|
package prodos
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
func ReadBlock(file *os.File, block int) []byte {
|
||
|
buffer := make([]byte, 512)
|
||
|
|
||
|
file.ReadAt(buffer, int64(block)*512)
|
||
|
|
||
|
return buffer
|
||
|
}
|