public static String ReadString(this Addressable addressable, long index, int length) { if (length < 0) { return(null); } if (length == 0) { return(String.Empty); } byte[] bytes = new byte[length]; addressable.GetBytes(index, bytes); return(Encoding.UTF8.GetString(bytes)); }
public void GetBytes(long index, byte[] data) { target.GetBytes(index + position, data); }