Class HashStreamValidator (7.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
Inheritance
Transform
>
HashStreamValidator
Package
@google-cloud/storage
Constructors
(constructor)(options)
constructor
(
options
?:
Partial<HashStreamValidatorOptions>
);
Constructs a new instance of the HashStreamValidator
class
Properties
crc32c
get
crc32c
()
:
string
|
undefined
;
Return the current CRC32C value, if available.
crc32cEnabled
readonly
crc32cEnabled
:
boolean
;
crc32cExpected
readonly
crc32cExpected
:
string
|
undefined
;
md5Enabled
readonly
md5Enabled
:
boolean
;
md5Expected
readonly
md5Expected
:
string
|
undefined
;
updateHashesOnly
readonly
updateHashesOnly
:
boolean
;
Methods
_flush(callback)
_flush
(
callback
:
(
error
?:
Error
|
null
|
undefined
)
=
>
void
)
:
void
;
callback
(error?: Error
| null | undefined) => void
_transform
(
chunk
:
Buffer
,
encoding
:
BufferEncoding
,
callback
:
(
e
?:
Error
)
=
>
void
)
:
void
;
callback
(e?: Error
) => void
test(hash, sum)
test
(
hash
:
'crc32c'
|
'md5'
,
sum
:
Buffer
|
string
)
:
boolean
;
sum
"\"buffer\"".__global.Buffer
| string
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class HashStreamValidator (7.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [7.16.0 (latest)](/nodejs/docs/reference/storage/latest/storage/hashstreamvalidator)\n- [7.13.0](/nodejs/docs/reference/storage/7.13.0/storage/hashstreamvalidator)\n- [7.3.2](/nodejs/docs/reference/storage/7.3.2/storage/hashstreamvalidator)\n- [7.2.0](/nodejs/docs/reference/storage/7.2.0/storage/hashstreamvalidator)\n- [7.1.0](/nodejs/docs/reference/storage/7.1.0/storage/hashstreamvalidator)\n- [7.0.1](/nodejs/docs/reference/storage/7.0.1/storage/hashstreamvalidator)\n- [6.12.0](/nodejs/docs/reference/storage/6.12.0/storage/hashstreamvalidator)\n- [6.11.0](/nodejs/docs/reference/storage/6.11.0/storage/hashstreamvalidator)\n- [6.7.0](/nodejs/docs/reference/storage/6.7.0/storage/hashstreamvalidator)\n- [6.6.0](/nodejs/docs/reference/storage/6.6.0/storage/hashstreamvalidator)\n- [6.5.4](/nodejs/docs/reference/storage/6.5.4/storage/hashstreamvalidator)\n- [6.4.2](/nodejs/docs/reference/storage/6.4.2/storage/hashstreamvalidator)\n- [6.3.0](/nodejs/docs/reference/storage/6.3.0/storage/hashstreamvalidator)\n- [6.2.3](/nodejs/docs/reference/storage/6.2.3/storage/hashstreamvalidator)\n- [5.19.1](/nodejs/docs/reference/storage/5.19.1/storage/hashstreamvalidator)\n- [5.18.3](/nodejs/docs/reference/storage/5.18.3/storage/hashstreamvalidator)\n- [5.17.0](/nodejs/docs/reference/storage/5.17.0/storage/hashstreamvalidator)\n- [5.16.1](/nodejs/docs/reference/storage/5.16.1/storage/hashstreamvalidator)\n- [5.15.6](/nodejs/docs/reference/storage/5.15.6/storage/hashstreamvalidator)\n- [5.14.8](/nodejs/docs/reference/storage/5.14.8/storage/hashstreamvalidator)\n- [5.13.2](/nodejs/docs/reference/storage/5.13.2/storage/hashstreamvalidator)\n- [5.12.0](/nodejs/docs/reference/storage/5.12.0/storage/hashstreamvalidator)\n- [5.11.1](/nodejs/docs/reference/storage/5.11.1/storage/hashstreamvalidator)\n- [5.10.0](/nodejs/docs/reference/storage/5.10.0/storage/hashstreamvalidator)\n- [5.9.0](/nodejs/docs/reference/storage/5.9.0/storage/hashstreamvalidator)\n- [5.8.5](/nodejs/docs/reference/storage/5.8.5/storage/hashstreamvalidator) \n\nInheritance\n-----------\n\nTransform \\\u003e HashStreamValidator\n\nPackage\n-------\n\n[@google-cloud/storage](../overview.html)\n\nConstructors\n------------\n\n### (constructor)(options)\n\n constructor(options?: Partial\u003cHashStreamValidatorOptions\u003e);\n\nConstructs a new instance of the `HashStreamValidator` class\n\nProperties\n----------\n\n### crc32c\n\n get crc32c(): string | undefined;\n\nReturn the current CRC32C value, if available.\n\n### crc32cEnabled\n\n readonly crc32cEnabled: boolean;\n\n### crc32cExpected\n\n readonly crc32cExpected: string | undefined;\n\n### md5Enabled\n\n readonly md5Enabled: boolean;\n\n### md5Expected\n\n readonly md5Expected: string | undefined;\n\n### updateHashesOnly\n\n readonly updateHashesOnly: boolean;\n\nMethods\n-------\n\n### _flush(callback)\n\n _flush(callback: (error?: Error | null | undefined) =\u003e void): void;\n\n### _transform(chunk, encoding, callback)\n\n _transform(chunk: Buffer, encoding: BufferEncoding, callback: (e?: Error) =\u003e void): void;\n\n### test(hash, sum)\n\n test(hash: 'crc32c' | 'md5', sum: Buffer | string): boolean;"]]