public byte[] ReadBytes(long count) { byte[] ret = new byte[count]; ByteMarshal.CopyTo(_cur, ret, 0, count); _cur += count; return(ret); }
public void Read(byte[] buffer, long offset, long count) { ByteMarshal.CopyTo(_cur, buffer, offset, count); _cur += count; }
public void Write(byte[] buffer, long offset, long count) { ByteMarshal.CopyTo(buffer, offset, _cur, count); _cur += count; }