public S3ResourceStream(S3StoreInfo store, string bucketName, string physicalPath) { fFile = new S3ResourceFile(store, bucketName, physicalPath); fCursor = 0; // start with an empty buffer fBuffer = fFile.GetBufferWithRetry(0, BufferBytes); }
/// <summary> /// Constructs an object which will read chunks of a file on S3. /// </summary> /// <param name="store">The S3 store info.</param> /// <param name="bucketName">The S3 bucket name.</param> /// <param name="physicalPath">The physical path within the bucket.</param> public S3ResourceFile(S3StoreInfo store , string bucketName, string physicalPath) { fStore = store; fBucketName = bucketName; fPhysicalPath = physicalPath; }
internal S3ResourceStore(string s3Path) { // get the store (only make one store for each unique set of parameters) fStore = OpenS3Store(s3Path); }