gms_bdb_write

Usage: gms_bdb_write ( handle, type, value )

Description

Writes value to the binary data block associated with the handle, the first argument of the callback script provided for gms_bdb_open.

Type must be one of the following:


  • bdb_u8

  • bdb_u16

  • bdb_u32

  • bdb_s8

  • bdb_s16

  • bdb_s32

  • bdb_string

  • bdb_f32

  • bdb_f64

Replies (2)

Last message on 25 Jun 2016

Aaron13ps on 25 Jun 2016, 05:46:33
Can you briefly explain what each value does?
Size43 (Administrator) on 25 Jun 2016, 22:00:21
They are different data types supported by the BDBs.

uN (N= 8, 16 or 32): Unsigned integers, N bits. Meaning values without a fraction between 0 and 2^N.

sN (N= 8, 16 or 32): Signed integers, N bits. Meaning values without a fraction between -2^(N-1) and 2^(N-1).

f32/64: Single (32) or double (64) precision floating point values. GameMaker uses 64-bit double precision floats.

string: A string.

See alsohttp://docs.yoyogames.com/source/dadiospice/002_reference/buffers/buffer_write.html